React Native IOS StoreKit API (ExternalLinkAccount) - ios

I have submitted “reader” app to the app store and I have problem regarding to ExternalLinkAccount. After IOS 16 update apple requires to use open() method instead of creating custom modal component (https://developer.apple.com/documentation/storekit/externallinkaccount). So is there any way to call the open() method of the ExternalLinkAccount in React Native?
I have added all the required fields in the XCode and I have created the custom modal and it works for IOS 15 and below but now for IOS 16.

Related

Can't install app on iOS 12 after adding lockscreen widget with Xcode 14

I'm struggling with widget extension configuration for an App which supports iOS 12-iOS 16 versions, and containing today widget, home screen widget, Lock Screen widget and Apple Watch extension.
It's fully functional on iOS 14-15-16 devices (I followed Apple WWDC 22 video : Widgets Reloaded), but users running iOS 12 for example, they can't install the app. The App Store let them download the app, but at installation, it fails every time. I manage to reproduce on iOS 12.3 simulator, with the current error. I understand that the NSExtension does not exist on iOS 12, but I can't found a way to remove the new iOS 16 lockscreen widget extension for old firmwares.
This app could not be installed at this time.
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Appex bundle at /Users/XXX/Library/Developer/CoreSimulator/Devices/XXXXX-D905-49CF-BD5F-EF2CDCF23F0E/data/Library/Caches/com.apple.mobile.installd.staging/temp.TMGGEs/extracted/Dev-XXX.app/Watch/Watch.app/PlugIns/XXComplicationExtension.appex
with id com.XXXXX.dev.watchkitapp.watchkitextensioncomplication specifies a value (com.apple.widgetkit-extension) for the NSExtensionPointIdentifier key in the NSExtension dictionary in its Info.plist that does not correspond to a known extension point.
Any ideas? I can just add or remove the XXComplicationExtension.appex in the watch app target, no option like for frameworks to make it optional.

HomeKit Delegate APIs not working inside iOS flutter plugin

I am developing a flutter plugin for accessing Apple HomeKit features inside my flutter app. The following project and code setup is done for iOS project inside flutter folder:
Project setup:
1. Enabled HomeKit in Capabilities
2. Added Privacy – HomeKit Usage Description Key in Info.plist
Code Setup inside plugin:
1. Created instance of HMHomeManager
2. Set the HMHomeManager delegate
3. Implemented delegate methods
Also, cross verified the access to HomeKit for my flutter app in the Settings.
Issue 1:
For the same set up, a native iOS application is running fine and homeManagerDidUpdateHomes delegate method is getting called immediately after accessing HomeKit Database which is properly providing Home information.
But, in flutter plugin, delegate method is not getting called and always home count is Zero.
Issue2:
I have written code to add new HomeKit Home inside iOS plugin and tried calling the method from flutter UI. Strangely the code inside addHome(withName: ) block is not executing but Home is getting created inside HomeKit database. This is confirmed by running Apple ‘Home’ app.
In this case also, homeManager(didAdd home: ) delegate method is not called.
Version details:
Xcode: 11.2, swift 4.2
Flutter: 1.14.6, Dart: 2.8.0
Does any other set up is required in flutter plugin to set HomeKit Delegate?
As an alternative approach, also tried using cupertino_ffi_generated 0.1.1 (https://pub.dev/packages/cupertino_ffi_generated) which is a recent package from flutter for accessing Apple APIs. (Even though it is directly mentioned: “Most Flutter developers should not use this package. It's almost always a better idea to write a Flutter plugin than use this package.” ).
But, flutter throwing an error ‘Target of URI doesn't exist:’
Version details:
Flutter: 1.14.6, Dart: 2.8.0
I was facing a similar problem. iOS swift delegate methods were not triggered. It appears that the methods must have been declared public.
Just replace
func addHome...
with
public func addHome...
Maybe it will helps someone...

IOS- App crash while access Google Analytics Instance in custom framework with iOS 10

Actually, I have created a custom framework. I am using Google Analytics in the main project and in the custom framework (That I have created) as well. When I am trying to get GAI(Google AnalyticsInstance) object in my custom framework the app is crashing. Although It is working fine with iOS 11 but crashed on iOS 10.
Exact line where I am getting crash: GAI.sharedInstance().
Please help. Thanks in advance.

App crashes if PaywithCard is selected in PayPalPaymentViewController [Paypal iOS SDK]

I have integrated paypal's payment gate way in my app and I have added all the neccessary sdks and libraries. When I enable acceptCreditCards option in paypal configuration, app crashes as soon as user tries to tap on PaywithCard option.
Crash Log:
'Application tried to present a nil modal view controller on target <PayPalPaymentViewController: 0x7fce3029f200
Environment: sandbox
languageOrLocale: en-US
>
I even tried enabling PaywithCard in paypal's sample app and observed the same behaviour.I'm using Xcode 8, swift 3 and
I have added card.io SDK and cleaned the app before running.Now app works as expected.

Reminder API in iOS 6.0

Strange bug in iOS 6.0 sdk. Apple promised to deliver full reminder support via api, to allow thirdparty applications to read and write reminders on behalf of user. There is new methods in SDK to init storekit for use with reminders.
But seems like main method to make it possible - just not present. Both GM version of XCode 4.5 and simulator/ios-6 upgraded device shows that EKEventStore:initWithAccessToEntityTypes is not present in SDK and attempt to call it on device/simulator crashing application with
Error invoking method 'EKRemsIsGranted' on 'CEKtils' because
-[EKEventStore initWithAccessToEntityTypes:]: unrecognized selector sent to instance 0x13a59140
Interesting that this method is also mentioned and described in MacOs 10.8
but in iOS sdk it is mentioned but NOT described
Seems like apple devs forgot to "enable" it on iOS. is it possible at all or I missing something?
There's a description of the event (and some other useful information) here. You might also double-check that your UIEventKit framework is properly linked and up to date.

Resources