ios-app-extension

Today Extension Not Positioned Correctly

梦想的初衷 提交于 2020-01-01 07:20:37
问题 I'm developing a Bitcoin Today Extension and for some reason, the control has an offset. Here's what it currently looks like: http://i.imgur.com/KxeXePS.png As you can see, the button is barely on the screen, and the label isn't on the left side. My storyboard looks like: http://i.imgur.com/6vtfNGJ.png I've tried settings multiple kinds of constraints, and none of them seem to fix the issue. I'm not sure what other information I can add, but if you have any questions about the project, I can

iOS Extension - Fatal Exception: com.firebase.core Default app has already been configured

梦想与她 提交于 2020-01-01 04:43:36
问题 iOS Extension - Fatal Exception: com.firebase.core Default app has already been configured. I run the Fir.configure() in the viewDidLoad() method and some events pass and get through to Firebase. Can someone help me figure this out.. Google is not friendly enough. PS: Yes I created a second .plist, and a second app in Firebase Console. PPS: Yes I selected the correct target for each GoogleServices plist I'm seeking the solution.. 回答1: I don't know if you're still looking for a solution but I

Today Extension has a title, but no body iOS 8

こ雲淡風輕ζ 提交于 2020-01-01 01:53:13
问题 I am trying out the new TodayExtensions in iOS 8 and I followed the steps to create a Today Extension as described in the WWDC video Creating Extensions for iOS and OS X, Part 1 . I added a colored UIView to the ViewController in the provided storyboard. I get a title in my "Today" Notification center, but I get no body with my colored view. It looks like this (I made two): Is anyone else getting this? I set breakpoints in all of my ViewControllers methods and nothing gets called. I changed

How to use same Authenticated user token between main iOS app and its Share Extension

故事扮演 提交于 2019-12-31 03:27:08
问题 We have the main app integrated with Firebase SDK. User sign in via main application using email, google or facebook. Now, we have share extension implemented which ideally should share same Authentication session internally so that data can be sent on Firebase with the same user without asking him to login again through the extension. So, does anyone know the way to share Firebase authentication session between the Main app and share extension? Either we sent some internal call to the main

How to officially handle unauthenticated users in an iOS share extension?

三世轮回 提交于 2019-12-29 08:04:19
问题 That is, what is an idiomatic way to do this that is prescribed by Apple? For any suggestion, please explain HOW that should be done and/or provide a link to official guides. This should be a common enough scenario, but I was only able to find workarounds. Approaching this from the other end, I know that UserDefaults(suiteName:) and Keychain services can be used from the containing app to share information about the authenticated user with the extension, but what if the user installs the app

iOS AppExtension : How can I Combine NSExtensionActivationRule and NSPredicate

孤人 提交于 2019-12-28 16:12:29
问题 I am currently developing an iOS application containing a Share extension. I realized that the NSExtensionActivationSupportsImageWithMaxCount key doesn't allow me to activate my Share extension on .jpeg or .png URLs ("public.image" UTI, kUTTypeImage) under Safari (ie : an imgur link). I can still activate and test my extension if I switch to a NSActivationRule = TRUEPREDICATE, but it is forbidden for a released app. I filled a bug on radar in case of it wasn't wanted (even facebook, twitter,

Get device current orientation (App Extension)

你说的曾经没有我的故事 提交于 2019-12-28 13:19:07
问题 How to get device current orientation in an App Extension, I have tried below two methods but no success. It always return UIDeviceOrientationUnknown [[UIDevice currentDevice] orientation] It shows red message that ‘sharedApplication’ is not available on iOS (App Extension) [[UIApplication sharedApplication] statusBarOrientation]; I also add an observer but it not getting called. [[NSNotificationCenter defaultCenter] addObserver:self.view selector:@selector(notification_OrientationWillChange:

Text field stays under the custom keyboard in UIWebView for iOS 8

我只是一个虾纸丫 提交于 2019-12-25 02:34:47
问题 I'm creating a web App for iOS and I have a custom keyboard. When I use the default keyboard, it immediately shows the keyboard and the text field is above the keyboard. I would have the same result if I change the keyboard to my custom keyboard. But the problem is for the time that I gives the focus to the text field when my custom keyboard is enabled. It has some delay to load and when it loads, text field stays under the keyboard. Here is my code for custom keybaord: #import

change screen rotation of app extension in objective c

我的未来我决定 提交于 2019-12-23 20:18:07
问题 How do I lock from rotating screen, I want my app extension to be only in portrait mode. When I'm using my extension inside Photos my I can rotate the screen to landscape. thanks 回答1: You have to choice: 1- Set landscape and portrait as supported interface orientation in the project, and then for each ViewController, you will override the supported interface orientation; 2- Set only portrait mode in the project, and in the ViewController you need it, you can make a 90 degree rotation self

App Extension “Terminated due to memory issue”

試著忘記壹切 提交于 2019-12-23 19:15:28
问题 In my app Notification Service Extension I do the following things: - get data (in background) from Parse, - write data to file - save data in NSUserDefaults (in a shared container). Sometimes I get the message: "Terminated due to memory issue". No other information about what causes this. Anybody experience with this? This strange thing is that it only happens now and then. 回答1: There is a memory limit in notification service extension. You are supposed to use memory less than about 4.5M. So