ios-app-group

NSUserDefault with App Group is not working in iOS 8 Beta3

 ̄綄美尐妖づ 提交于 2019-12-01 20:36:19
I have to save Boolean Value to NSUserDefault in my App with custom keyboard extension and share with App Group. My Code is worked in iOS 8 Beta1. self.defaults = [NSUserDefaults standardUserDefaults]; if([self.defaults boolForKey:@"BlackKey"]) { NSLog(@"Black"); } else { NSLog(@"White"); } But Not in iOS 8 Beta3. When i retrieve Boolean value from NSUserDefault , it's return nothing and i can't load from custom keyboard extension. I have also tried with initWithSuiteName in NSUserDefault . Am i only one for that problem or bugs of iOS 8 Beta3? A few probable solutions are: Your app group is

Uninstalling app not delete app group data .Do I have to remove app group container and it's content manually?

空扰寡人 提交于 2019-11-30 08:27:52
I created a Today Extension that is introduced in iOS 8 first time. To share data between Today extension and it's container App , I defined an app group , and bind them to this group. (Actually I added an embedded framework also to re-use code in both side.) Details of this method is described in Apple's document . I created some core data model and store it as sqlite on group container. Then everything works as I thought. However, when I uninstall container app, There are still shared container and it's content on my iPhone. I think when last member of app group is uninstalled, this

Check full access for custom keyboard extension

杀马特。学长 韩版系。学妹 提交于 2019-11-30 07:46:37
I need to check full access for custom keyboard extension. I found this link. How to check the "Allow Full Access" is enabled in iOS 8? It say we can check App group. I have app group called "group.TTT.TGroup". It share access between main app and custom keyboard. Then, I check like this. Problem is that I always have access to that (always has array or error = null). Is it because I am sharing same data? But, if my app use another app group and extension use other app group, I can't definitely access to that. May I know how to do? NSFileManager* fileManager = [NSFileManager defaultManager];

Uninstalling app not delete app group data .Do I have to remove app group container and it's content manually?

百般思念 提交于 2019-11-29 11:21:29
问题 I created a Today Extension that is introduced in iOS 8 first time. To share data between Today extension and it's container App , I defined an app group , and bind them to this group. (Actually I added an embedded framework also to re-use code in both side.) Details of this method is described in Apple's document. I created some core data model and store it as sqlite on group container. Then everything works as I thought. However, when I uninstall container app, There are still shared

NSUserDefaults(suiteName:) on iOS 9 and WatchOS 2 - not working?

烂漫一生 提交于 2019-11-29 07:16:17
I've done this before but nothing seems to be working. Here's my code: Saving in the iOS App let groupDefaults = NSUserDefaults(suiteName: "group.company.appSharedDefaults") groupDefaults?.setObject(theArray, forKey: "theKey") groupDefaults?.synchronize() Reading (works on iOS but not WatchOS 2) let groupDefaults = NSUserDefaults(suiteName: "group.company.appSharedDefaults") if groupDefaults!.objectForKey("theKey") != nil { textEmojiArray = NSMutableArray(array: groupDefaults!.objectForKey("theKey") as! NSArray) } else { //error } Both .entitlements files contain group.company

Cannot access NSUserDefaults using app groups one to another

删除回忆录丶 提交于 2019-11-29 03:54:32
I'm working on an app and a widget that the widget needs to get data from app. I've used the following codes to read and write on NSUserDefaults. And also I used $(PRODUCT_BUNDLE_IDENTIFIER).widget for widget and $(PRODUCT_BUNDLE_IDENTIFIER) referring to this post. But widget cannot get the data from app or NSUserDefaults. How can I make it work? func addTask(name: String?) { let key = "keyString" tasks.append(name!) let defaults = NSUserDefaults(suiteName: "group.Mins") defaults?.setObject(tasks, forKey: key) defaults?.synchronize() } /////// let defaults = NSUserDefaults(suiteName: "group

Why won't app groups work inside my WatchKit extension?

只愿长相守 提交于 2019-11-29 01:23:05
I've seen all the other posts of SO about sharing NSUserDefaults data between host apps and app extensions, but mine still doesn't work. Here's everything I've done: Enable App Groups on Xcode's "Capabilities" tab for the extension and host app. Set the group name to "group.com.mycompany.foo" and confirmed the extension and host app are added to the group. Confirmed an entitlements file exists for both with the "com.apple.security.application-groups" key set to my app group name. (For what it's worth, I'm also using the shared keychain capabilities between extension and host app and that is

Xcode 8: different entitlements for each scheme causing errors

谁说我不能喝 提交于 2019-11-28 23:45:49
I found an issue with XCode 8 where .entitlements files are not being referenced properly for each scheme. Basically, my Debug .entitlements file is being referenced for my Release scheme. This is causing an issue because we implemented the new Rich push notification logic and that requires the use of App groups. I am using two different teams (Development and Production), so there will be two specific App Groups. Anyone know how to resolve this issue? Thank you I found a solution. Make one .entitlements file add this: <key>aps-environment</key> <string>$(APS_ENVIRONMENT)</string> <key>com

iPhone and Apple Watch not sharing App Group

一笑奈何 提交于 2019-11-28 05:22:13
问题 I've been pulling my hair out over this problem for two days now. I generate a small movie file in the iPhone App that I want to send from the iPhone to play on an Apple Watch. As I proof of concept, I put a similar .mov in the Bundle of the Apple Watch App and was able to play it with no problems. So I figured, easy peasy, now when I want to send a new little clip to the watch, I will just put it in an App Group Shared container and access it from there instead of from the Bundle. Nope! I

NSUserDefaults(suiteName:) on iOS 9 and WatchOS 2 - not working?

僤鯓⒐⒋嵵緔 提交于 2019-11-28 00:46:00
问题 I've done this before but nothing seems to be working. Here's my code: Saving in the iOS App let groupDefaults = NSUserDefaults(suiteName: "group.company.appSharedDefaults") groupDefaults?.setObject(theArray, forKey: "theKey") groupDefaults?.synchronize() Reading (works on iOS but not WatchOS 2) let groupDefaults = NSUserDefaults(suiteName: "group.company.appSharedDefaults") if groupDefaults!.objectForKey("theKey") != nil { textEmojiArray = NSMutableArray(array: groupDefaults!.objectForKey(