Firebase error 2001. How can I fix it? - ios

I am developing a cordova app for ios and i am using the cordova plugin named "cordova-plugin-firebase" on npm. I have both certificates on fcm console.
When I start my application, in xcode's console it says "connected to fcm" and when I send a notification I get:
Unable to connect to FCM. Error Domain=com.google.fcm Code=2001 "(null)"
It appears only when I send a notification from firebase console.

did you try to using different FIRInstanceIDAPNSTokenType?
you can found more info about this issue in the link:
https://firebase.google.com/docs/reference/ios/firebaseinstanceid/api/reference/Enums/FIRInstanceIDAPNSTokenType

Related

Airwatch SDK iOS - We were unable to retrieve the configuration information

Using the Airwatch SDK v21.4 on iOS an error is shown:
"We were unable to retrieve the configuration information. Press
continue to try again"
Using Airwatch SDK 20.9 worked fine, but after upgrading to version (21.0 thru 21.4) on iOS the SDK is displaying the error.
The message text can be found in an AWSDK.framework file Localizable.strings within the entry RetryToFetchConfigurationInformation
I can do a fresh install from the HUB app just fine.
After launching the app the UI is not displayed until a successful response from controllerDidFinishInitialCheck.
My controllerDidFinishInitialCheck method does not contain any errors.
After receiving a valid controllerDidFinishInitialCheck result the UI is displayed, followed by a popup alert message with the error.
Advice / Suggestions / How can I isolate this issue? It may be a timeout issue?

iOS Notification Extension to load media not called

I am running project in Xcode 12.2 and on iOS 14.2 to load images in a push notifications. I am getting the below error messages in console and the Push notification shows up without the image.
SpringBoard [com.mydomain.myapp] No extension available for bundle
SpringBoard [com.mydomain.myapp] Error was encountered trying to find service extension: error=Error Domain=UNErrorDomain Code 1904 "Unknown application"
mutable_content is set to 1 in payload. App Groups is enabled.
I tried rebooting the device and this also didn't worked.
Kindly let me know if there is a solution.
Thanks in advance.
SpringBoard [com.mydomain.myapp] No extension available for bundle
SpringBoard [com.mydomain.myapp] Error was encountered trying to find
service extension: error=Error Domain=UNErrorDomain Code 1904 "Unknown
application"
You need to make sure your application deployment target and extension deployment target is the same.
It works for me.

SSL operation failed with code, while sending push notification to ios devices

I am trying to send push notifications, to iOS Devices which was working pretty well, but suddenly it started throwing the following error:
stream_socket_client(): SSL operation failed with code 1. OpenSSL
Error messages: error:14094438:SSL routines:ssl3_read_bytes:tlsv1
alert internal error
I checked with server port 2195 and 2916 both are enabled and double checked the .pem file which seems correct too.
I would appreciate if I can get help on the above error.
Thanks
Hi you should export Apple push service certificate screen shot given below and export it, Iam also got same error now fixed by export this certificate.
Let me know if you have any clarifications.

iOS Firebase: Error Unable to generate keypair

In our ios Swift app we use Firebase Analytics. (Firebase 3.16.0, Firebase Analytics 3.8.0, Firebase Core 3.6.0, FirebaseInstanceID 1.0.10)
Our app gets background launched from significant location changes but can be launched and used normally in the foreground. Sometimes we see the following error and warning pop up multiple (a lot of) times in our log.
<Error> [Firebase/Messaging][I-IID010003] Unable to generate keypair.
<Warning> [Firebase/Analytics][I-ACS020001] Failed to get InstanceID: Error Domain=com.firebase.iid Code=-25308 "(null)"
It looks like those errors and warnings only pop up if the app was actually background launched by the SLC. Where do these errors come from?
Note: Keychain Sharing is setup correctly
thank you.

iOS Push Notification issue with Mobile First 7.0 (Hybrid)

We are facing issue with "iOS Push Notification" functionality with Mobile First 7.0.
We have downloaded push notification sample app from
Sample App. As MF 7.0 doesn't have any sample app. So we used sample app of MF 6.3.
After installation we have tried to "subscribe" through iOS device. Its throwing below error and app is crashing.
[ERROR ] FWLSE0020E: Ajax request exception: The transaction has been rolled back. See the nested exceptions for details on the errors that occurred. [project PushNotifications][ERROR ] FWLSE0117E: Error code: 1, error description: INTERNAL_ERROR, error message: FWLSE0069E: An internal error occurred during gadget request [project PushNotifications]The transaction has been rolled back. See the nested exceptions for details on the errors that occurred., User Identity {wl_directUpdateRealm=(name:null, loginModule:WLDirectUpdateNullLoginModule), SubscribeServlet=null, wl_authenticityRealm=null, wl_remoteDisableRealm=(name:null, loginModule:WLRemoteDisableNullLoginModule), SampleAppRealm=null, wl_antiXSRFRealm=(name:mibphsqb0hb1bfcko7t0nfstts, loginModule:WLAntiXSRFLoginModule), PushAppRealm=(name:Test1, loginModule:PushAppLoginModule), wl_deviceAutoProvisioningRealm=null, wl_deviceNoProvisioningRealm=(name:89E62244-B169-4C8E-BB83-BD7F6868310E, loginModule:WLDeviceNoProvisioningLoginModule), myserver=(name:b71e8870-df42-424a-bc38-924c645d621e, loginModule:WeakDummy), wl_anonymousUserRealm=(name:b71e8870-df42-424a-bc38-924c645d621e, loginModule:WeakDummy)}. [project PushNotifications]
com.worklight.common.log.filters.ErrorFilte
Why are you saying MFP 7.0 doesn't have any sample? it is linked to in the tutorials for MFP 7.0, here: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/notifications/push-notifications-hybrid-applications/event-source-based-notifications/
So first try to the appropriate sample.
Additionally the error log does not reveal anything... provide logs from Xcode.
As for the crash - make sure you are using the latest MFPF 7.0 iFix from IBM Fix Central as an iOS push-related fix was delivered some time ago. You may be using a version affected by the bug.

Resources