Open MobiliteDev opened 1 year ago
Hello @MobiliteDev, you managed to make it work on iOS, I am migrating from flutter_apns to flutter_apns_x but the project cannot be executed correctly because it gives me the following error:
Unhandled Exception: MissingPluginException(No implementation found for method configure on channel flutter_apns)
Apparently it is an error similar to the one you mention
If you want to use apns_x, you have to fork it and import manually the native ios code into 'ios' folder from https://github.com/mwaylabs/flutter-apns/tree/master/flutter_apns_only/ios
Do mind just explaining how we should go about importing it, I am just struggling to get it all working again. Besides adding the files through XCode, from that fork into the runner folder, is there additional steps needed as I cant seem to get the FlutterApnsPlugin.swift file to be called when requesting permissions.
I also would like to know the process of how to "import manually the native ios code into 'ios' folder from https://github.com/mwaylabs/flutter-apns/tree/master/flutter_apns_only/ios" to make iOS work.
Thanks!
specifically https://github.com/mwaylabs/flutter-apns/blob/master/flutter_apns_only/ios/Classes/FlutterApnsPlugin.swift in particular, ie "Classes" dir, correct?
Is it not enough to add "flutter_apns_only" dependency in the pubspec file?
For information, it is impossible that iOS works because for iOS, there is normally a plugin with native iOS code (flutter_apns_only)
In your case, native code has not been included.
The code to inclue is here: https://github.com/mwaylabs/flutter-apns/tree/master/flutter_apns_only/ios