Money1998 / custom_apnsX

A new Flutter project for IOS Notification using apns token
GNU General Public License v3.0
0 stars 10 forks source link

iOS is not working #3

Open MobiliteDev opened 1 year ago

MobiliteDev commented 1 year ago

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

Marcos611Morales commented 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

MobiliteDev commented 1 year ago

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

AnAlpaca commented 8 months ago

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.

tong-k-k commented 7 months ago

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!

neiljaywarner commented 7 months ago

specifically https://github.com/mwaylabs/flutter-apns/blob/master/flutter_apns_only/ios/Classes/FlutterApnsPlugin.swift in particular, ie "Classes" dir, correct?

k4rm3l0 commented 6 months ago

Is it not enough to add "flutter_apns_only" dependency in the pubspec file?