Skip to content

Notifications suddenly stoped working for both iOS and Android #298

@moh1122

Description

@moh1122

Bug Report

I did update xcode and Android studio to latest version and im using cordova --version
12.0.0 (cordova-lib@12.0.1)
I did all the preconfiguration with the ios APN certificates and i have the firebase project for android configured

Expected Behaviour

I should get the notifications as it was working before

Actual Behaviour

Im not receiving the notifications anymore on mobile

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

iOS 18.1

'Here is my plugin list in config.xml'

<author email="mm@mm.com" href="https://www.support.com">
   MM
</author>
<content src="index.html" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="34" />
<preference name="GradlePluginKotlinEnabled" value="true" />
<preference name="GradlePluginKotlinVersion" value="1.7.10" />
<splash src="www/res/screen/ios/Default@2x~universal~anyany.png" />
<platform name="android">
    <icon density="ldpi" src="www/res/icon/android/ldpi.png" />
    <icon density="mdpi" src="www/res/icon/android/hdpi.png" />
    <icon density="hdpi" src="www/res/icon/android/hdpi.png" />
    <icon density="xhdpi" src="www/res/icon/android/xhdpi.png" />
    <icon density="xxhdpi" src="www/res/icon/android/xxhdpi.png" />
    <icon density="xxxhdpi" src="www/res/icon/android/xxxhdpi.png" />
    <splash density="land-ldpi" src="www/res/screen/android/splash-land-ldpi.png" />
    <splash density="land-mdpi" src="www/res/screen/android/splash-land-mdpi.png" />
    <splash density="land-hdpi" src="www/res/screen/android/splash-land-hdpi.png" />
    <splash density="land-xhdpi" src="www/res/screen/android/splash-land-xhdpi.png" />
    <splash density="land-xxhdpi" src="www/res/screen/android/splash-land-xxhdpi.png" />
    <splash density="land-xxxhdpi" src="www/res/screen/android/splash-land-xxxhdpi.png" />
    <splash density="port-ldpi" src="www/res/screen/android/splash-port-ldpi.png" />
    <splash density="port-mdpi" src="www/res/screen/android/splash-port-mdpi.png" />
    <splash density="port-hdpi" src="www/res/screen/android/splash-port-hdpi.png" />
    <splash density="port-xhdpi" src="www/res/screen/android/splash-port-xhdpi.png" />
    <splash density="port-xxhdpi" src="www/res/screen/android/splash-port-xxhdpi.png" />
    <splash density="port-xxxhdpi" src="www/res/screen/android/splash-port-xxxhdpi.png" />
</platform>
<platform name="ios">
    <icon height="57" platform="ios" src="www/res/icon/ios/icon.png" width="57" />
    <icon height="114" platform="ios" src="www/res/icon/ios/icon@2x.png" width="114" />
    <icon height="40" platform="ios" src="www/res/icon/ios/icon-40.png" width="40" />
    <icon height="80" platform="ios" src="www/res/icon/ios/icon-40@2x.png" width="80" />
    <icon height="50" platform="ios" src="www/res/icon/ios/icon-50.png" width="50" />
    <icon height="100" platform="ios" src="www/res/icon/ios/icon-50@2x.png" width="100" />
    <icon height="60" platform="ios" src="www/res/icon/ios/icon-60.png" width="60" />
    <icon height="120" platform="ios" src="www/res/icon/ios/icon-60@2x.png" width="120" />
    <icon height="180" platform="ios" src="www/res/icon/ios/icon-60@3x.png" width="180" />
    <icon height="72" platform="ios" src="www/res/icon/ios/icon-72.png" width="72" />
    <icon height="144" platform="ios" src="www/res/icon/ios/icon-72@2x.png" width="144" />
    <icon height="76" platform="ios" src="www/res/icon/ios/icon-76.png" width="76" />
    <icon height="152" platform="ios" src="www/res/icon/ios/icon-76@2x.png" width="152" />
    <icon height="167" platform="ios" src="www/res/icon/ios/icon-83.5@2x.png" width="167" />
    <icon height="29" platform="ios" src="www/res/icon/ios/icon-small.png" width="29" />
    <icon height="58" platform="ios" src="www/res/icon/ios/icon-small@2x.png" width="58" />
    <icon height="87" platform="ios" src="www/res/icon/ios/icon-small@3x.png" width="87" />
    <icon height="1024" platform="ios" src="www/res/icon/ios/iTunesArtwork@2x.png" width="1024" />
</platform>
<preference name="StatusBarOverlaysWebView" value="true" />
<preference name="StatusBarBackgroundColor" value="#000000" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="AutoHideSplashScreen" value="false" />
<access allows-arbitrary-loads-in-media="true" allows-arbitrary-loads-in-web-content="true" allows-local-networking="true" origin="*" />
<allow-navigation href="*" />
<allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
    <preference name="AndroidWindowSplashScreenAnimatedIcon" value="www/splash.png" />
    <preference name="hostname" value="localhost" />
    <preference name="AndroidInsecureFileModeEnabled" value="true" />
    <preference name="OverrideUserAgent" value="Mozilla/5.0 (Linux; Android 12; Pixel 6 Build/SQ3A.220605.009.B1; wv) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36" />
    <allow-intent href="market:*" />
    <preference name="AndroidPersistentFileLocation" value="Internal" />
    <access origin="cdvfile://*" />
    <preference name="android-debuggable" value="false" />
    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
        <application android:usesCleartextTraffic="true" />
        <application android:allowBackup="false" />
        <application android:fullBackupContent="false" />
    </edit-config>
    <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity">
        <activity android:exported="true" />
    </edit-config>

    <resource-file src="google-services.json" target="app/google-services.json" />
    <preference name="GradlePluginGoogleServicesEnabled" value="true" />
</platform>
<platform name="ios">
    <allow-intent href="itms:*" />
    <allow-intent href="itms-apps:*" />
    <plugin name="cordova-plugin-wkwebview-file-xhr" source="npm" />
    <plugin name="cordova-plugin-wkwebview-engine" source="npm" />
    <plugin name="cordova-plugin-safariviewcontroller" source="npm" />
    <feature name="CDVWKWebViewEngine">
        <param name="ios-package" value="CDVWKWebViewEngine" />
    </feature>
    <preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
    <preference name="WKWebViewOnly" value="true" />
    <preference name="OverrideUserAgent" value="Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="^1.3.4" />
<plugin name="cordova-plugin-transport-security" spec="~0.1.2" />
<plugin name="cordova-plugin-file" spec="~6.0.2-dev" />
<plugin name="cordova-plugin-file-transfer" spec="~1.7.1" />
<plugin name="cordova-plugin-battery-status" spec="~2.0.3" />
<plugin name="cordova-plugin-console" spec="~1.1.0" />
<plugin name="cordova-plugin-contacts" spec="~3.0.1" />
<plugin name="cordova-plugin-device" spec="~2.0.3" />
<plugin name="cordova-plugin-device-motion" spec="~2.0.1" />
<plugin name="cordova-plugin-screen-orientation" spec="~3.0.2" />
<plugin name="cordova-plugin-device-orientation" spec="~2.0.1" />
<plugin name="cordova-plugin-dialogs" spec="~2.0.2" />
<plugin name="cordova-plugin-geolocation" spec="~4.0.2" />
<plugin name="cordova-plugin-globalization" spec="~1.11.0" />
<plugin name="com.cordova.plugins.cookiemaster" spec="^1.0.5" />
<plugin name="com.darktalker.cordova.screenshot" spec="~0.1.5" />
<plugin name="com.rjfun.cordova.httpd" spec="~0.9.2" />
<plugin name="cordova-plugin-network-information" spec="~2.0.2" />
<plugin name="cordova-plugin-statusbar" spec="~2.4.3" />
<plugin name="cordova-plugin-keyboard" spec="~1.2.0" />
<plugin name="cordova-plugin-buildinfo" spec="~4.0.0" />
<plugin name="cordova-plugin-cache-clear" spec="~1.3.7" />
<plugin name="cordova-plugin-vibration" spec="~3.1.1" />
<plugin name="cordova-plugin-exitapp" spec="^1.0.0" />
<plugin name="@havesource/cordova-plugin-push" spec="^2.0.0">
          <variable name="FCM_VERSION" value="21.1.0" />
      </plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions