ios-extensions

iOS 10 don't call Notification Service Extension

邮差的信 提交于 2020-01-02 00:52:07
问题 I tried to implement the new Notification Service Extension, but I have a problem. In my NotificationService.swift file I have this code: class NotificationService: UNNotificationServiceExtension { var contentHandler: ((UNNotificationContent) -> Void)? var bestAttemptContent: UNMutableNotificationContent? override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler

iOS Share Extension is not working in Chrome

半世苍凉 提交于 2020-01-01 04:38:26
问题 Works for Safari, Doesn't work for Chrome Maybe the question is simple and stupid but I am new to iOS Development and I cannot find any right solution to solve this issue. I need to get: 1) page url 2) page name Extension Info.plist <dict> <key>NSExtensionAttributes</key> <dict> <key>NSExtensionActivationRule</key> <dict> <key>NSExrensionActivationSupportsText</key> <true/> <key>NSExtensionActivationSupportsFileWithMaxCount</key> <integer>1</integer> <key

How do i add this sharing button? IOS8 with swift

旧巷老猫 提交于 2019-12-29 04:56:28
问题 I want there to be a button in my app, that when it is pressed, this(See image below) Pops up. How do i do that? I don't want to create a custom sharing extion, i just want the default one? What code do i use? All the tutorials online are in objective-c. Please give an answer in swift. Image: http://9to5mac.com/2014/06/30/hands-on-1password-beta-shows-off-ios-8s-touch-id-extensions-apis-video/#jp-carousel-330420 Here is my code so far, but i get an error that UIBarButtonItem Is not convetable

Provide the caller id for incoming call from my own app

蓝咒 提交于 2019-12-28 06:44:06
问题 I want to write an App that can identify the phone number of incoming (unknown) calls by looking into a table inside my app (e.g. an SQLite Database Table). I already implemented this in iOS using a Call Directory Extension, but for Android the only option I can find is using a BroadcastReceiver with a popup above the native incoming call screen to show contact information. ContactsContract.Directory seems to offer the possibility to create custom directories where the native call app could

What is the file size limit in temporary directory in iOS?

随声附和 提交于 2019-12-25 19:07:41
问题 I am trying to save an image of size 7.9MB downloaded from here. But at line 'try data.write...' the extension crashes and I get this in console. kernel EXC_RESOURCE -> Notification Extension[3137] exceeded mem limit: ActiveHard 12 MB (fatal) kernel 46710.034 memorystatus: killing_specific_process pid 3137 [Notification Extension] (per-process-limit 3) - memorystatus_available_pages: 73906 ReportCrash starting prolongation transaction timer default 18:39:53.104640 +0530 ReportCrash Process

Is there maximum file or image size for twitter or Facebook via UIActivityViewController?

ⅰ亾dé卋堺 提交于 2019-12-24 05:35:22
问题 I use UIActivityViewController to share images and text to Message, Email, Facebook, Twitter etc. Until recently, I thought I could send images of any size (at least up to 5MB). However, I have noticed that I can no longer send images greater than say 2.5MB to Facebook or twitter. E.g., I select an image to share, open the activityViewController and select Facebook. The activityViewController slowly opens the Facebook interface/view (but doesn't show attached image) then closes the Facebook

iOS App Today Extension not uploaded to physical device

荒凉一梦 提交于 2019-12-23 12:43:52
问题 I am creating a today widget for my app http://budgt.ch as some users have requested quick access to key functionality. The (preliminary) extension is working fine on iOS simulators, installed like this: 1) install latest container app 2) install extension with 'today' as container However: i cannot seem to get the extension to show on a physical device (i am currently testing with an iPhone 6). xcode says: Build successfull Extension is not showing up in today view any ideas what could be

IOS) Photo Extension Unable To Save Changes Issue

女生的网名这么多〃 提交于 2019-12-22 09:59:16
问题 I am making Photo Extension, but when I am trying to save changes(Done button Tapped). Alert Message Says "Unable to Save Changes" - 'An Error occurred while saving. Please try again later.' This is my code for finishContentEditingWithCompletionHandler:completionHandler - (void)finishContentEditingWithCompletionHandler:(void (^)(PHContentEditingOutput *))completionHandler { // Update UI to reflect that editing has finished and output is being rendered. // Render and provide output on a

iOS Share extension not working on image urls

ぃ、小莉子 提交于 2019-12-22 09:38:16
问题 I have a share extension that uses those rules: <dict> <key>NSExtensionActivationSupportsWebURLWithMaxCount</key> <integer>1</integer> <key>NSExtensionActivationSupportsWebPageWithMaxCount</key> <integer>1</integer> <key>NSExtensionActivationSupportsImageWithMaxCount</key> <integer>10</integer> <key>NSExtensionActivationSupportsText</key> <integer>1</integer> </dict> It works perfectly for normal websites and images but I can't parse image urls like this : ( http://www.zappos.com/images/z/3/3

How to create the new target in Xcode for app extension using CMake?

≯℡__Kan透↙ 提交于 2019-12-20 02:43:26
问题 I want to use Notification Content Extension in my Xcode project. I use CMake to generate my project. Now the project has only one target. I can add the extension as new target manually in Xcode using menu File - New - Target - Notification Content Extension. Could you provide an example how to create new Xcode project with additional target for app extension by using CMake? 回答1: Since CMake 3.8, you could use XCODE_PRODUCT_TYPE target property to let CMake generate specific type of