Arnesson/cordova-plugin-firebase - Android OK, IOS problem

Plugin works good for android. In ios i get the error:

2017-07-28 11:43:20.292 fxcom-mobile[3036] <Error> [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure] to your application initialization. Read more: 2017-07-28 11:43:20.461 fxcom-mobile[3036] <Notice> [Firebase/Analytics][I-ACS023007] Firebase Analytics v.3700000 started 2017-07-28 11:43:20.479 fxcom-mobile[3036] <Notice> [Firebase/Crash][I-CRA000004] Successfully initialized 2017-07-28 11:43:20.492: <FIRMessaging/INFO> FIRMessaging library version 1.2.2 2017-07-28 11:43:20.493 fxcom-mobile[3036] <Notice> [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see 2017-07-28 11:43:20.501 fxcom-mobile[3036] <Notice> [Firebase/Analytics][I-ACS003007] Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist 2017-07-28 11:43:20.509 fxcom-mobile[3036:2586442] *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL 2017-07-28 11:43:20.511: <FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO 2017-07-28 11:43:21.327 fxcom-mobile[3036] <Warning> [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at 2017-07-28 11:43:21.563 fxcom-mobile[3036:2586442] Resetting plugins due to page load. 2017-07-28 11:43:21.591 fxcom-mobile[3036] <Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled 2017-07-28 11:43:22.111 fxcom-mobile[3036:2586442] Connected to FCM. 2017-07-28 11:43:22.120 fxcom-mobile[3036:2586442] InstanceID token: cvc901KFh3A:APA91bEuKrhONQCBjwTluSHLmfkZs-jZsWFIsrLlXO_oU9o_fh5OboXzhRzjLllyZ0zFLlMllZ07xTYEBHY9GPtSsz8X9f4E_8sqsiWcz9CgfywqbTdQp7MSeX06oY3LX7Q-yf_Ut4dJ 2017-07-28 11:43:23.420 fxcom-mobile[3036:2586442] Finished load of: file:///var/containers/Bundle/Application/FA355379-CF9A-4988-B883-DB54329678D3/

But I register the token, and I get through the firebase console to send a test message and the send occurs normal:

2017-07-28 11:44:34.544 fxcom-mobile[3036:2586442] { "collapse_key" = ""; from = 439640769386; notification = { body = test; e = 1; }; tap = 0; }

And the function does not work:

window.FirebasePlugin.onNotificationOpen(function(notification) { console.log(notification); }, function(error) { console.error(error); });

Any idea of the problem?

1 Like