Open kidozh opened 2 years ago
Getting the same issue with 1.6.0
Also encountered the same problem, before updating, you can avoid it this way.
flutter_apns: #^1.6.0
git: https://github.com/sseen/flutter-apns.git
adding following option in info.plist
solved this problem.
<key>flutter_apns.disable_swizzling</key>
<true/>
As is illustrated in the title, the plugin will cause the following error when firebase is initilized:
the error comes from the line
In this issue, the author points out that flutter_apns doesn't using the upgraded version of flutterfire and make it happen.
I upgraded all the dependencies including
flutter_apns
(1.6.0) andfirebase_messaging
(12.0.1) and this error still occurs. After removingflutter_apns
, the firebase can normally get initialized without any error. When adding it back to the dependencies and without adding any code, the Unhandled Exception shows up when initializing firebase messaging.So there is a conflict between
flutter_apns
andfirebase_messaging
but I don't know the exact reason.