dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
572 stars 469 forks source link

Error Domain=com.google.remoteconfig.ErrorDomain Code=8003 #736

Open kartikthakur2022 opened 2 years ago

kartikthakur2022 commented 2 years ago

Error Domain=com.google.remoteconfig.ErrorDomain Code=8003 \“An SSL error has occurred and a secure connection to the server cannot be made.\” UserInfo={NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.}

Hi, I am getting this error while requesting remote config data when connected to an unsecured wifi network. Is there any workaround for this? I am getting this error while fetching remote config for Android and ios devices. Please help!!

cordova-plugin-firebasex : 13.0.1

onlinecoder84 commented 1 year ago

Hi,

I also have problems with Token requesting, when the app starts I got these errors:

APNS device token not set before retrieving FCM Token for Sender ID '####'.Be sure to re-retrieve the FCM token once the APNS device token is set.

and also:

Declining request for FCM Token since no APNS Token specified

then:

The subscription operation failed due to an error getting the FCM token: Error Domain=com.google.fcm Code=505 "No APNS token specified before fetching FCM Token" UserInfo={NSLocalizedFailureReason=No APNS token specified before fetching FCM Token}.

and finally I got:

_Failed restful api request to fetch in-app messages: seeing http status code as 403 with body as { "error": { "code": 403, "message": "Firebase In-App Messaging API has not been used in project ###### before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseinappmessaging.googleapis.com/overview?project=285713951715 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.rpc.Help", "links": [ { "description": "Google developers console API activation", "url": "https://console.developers.google.com/apis/api/firebaseinappmessaging.googleapis.com/overview?project=285713951715" } ] }, { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "SERVICE_DISABLED", "domain": "googleapis.com", "metadata": { "service": "firebaseinappmessaging.googleapis.com", "consumer": "projects/########" } } ] } }_

What I did:

Can anyone help me? On Android the app works fine, the problem is only iOS.

My Podfile:

DO NOT MODIFY -- auto-generated by Apache Cordova

source 'https://cdn.cocoapods.org/' platform :ios, '11.0' use_frameworks! target 'Trovaslot' do project '########.xcodeproj' pod 'Firebase/Core', '10.10.0' pod 'Firebase/Auth', '10.10.0' pod 'Firebase/Messaging', '10.10.0' pod 'Firebase/Performance', '10.10.0' pod 'Firebase/RemoteConfig', '10.10.0' pod 'Firebase/InAppMessaging', '10.10.0' pod 'Firebase/Firestore', '10.10.0' pod 'Firebase/Crashlytics', '10.10.0' pod 'Firebase/Functions', '10.10.0' pod 'Firebase/Installations', '10.10.0' pod 'GoogleSignIn', '6.2.4' pod 'GoogleTagManager', '7.4.3' end

post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0' if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' end end end end