andrehtissot / cordova-plugin-fcm-with-dependecy-updated

Google FCM Push Notifications Cordova Plugin
MIT License
210 stars 277 forks source link

Push Notifications works well on android but not in iOS #118

Closed andrehtissot closed 4 years ago

andrehtissot commented 4 years ago

Hey i also have this issue, Push Notifications works well on android but not in iOS, I let you here my Podfile and package.json, hope you can help me

`# DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://cdn.cocoapods.org/'
source 'https://cdn.cocoapods.org'
platform :ios, '11.0'
use_frameworks!
target 'Chatrz' do
    project 'Chatrz.xcodeproj'
    pod 'Branch', '~> 0.31.3'
    pod 'FBSDKCoreKit', '5.15.0'
    pod 'FBSDKLoginKit', '5.15.0'
    pod 'FBSDKShareKit', '5.15.0'
    pod 'Firebase/Core', '>= 6.21.0'
    pod 'Firebase/Analytics', '>= 6.21.0'
    pod 'Firebase/Messaging', '>= 6.21.0'
    pod 'GoogleSignIn', '~> 5.0.2'
    pod 'GoogleUtilities', '~> 6.6'
    pod 'XCDYouTubeKit', '~> 2.7'
    pod 'Google-Mobile-Ads-SDK'
end
`

Package.json

{
  "name": "chatrz-app",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "https://ionicframework.com/",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^8.2.14",
    "@angular/common": "~8.1.2",
    "@angular/compiler": "~8.1.2",
    "@angular/forms": "~8.1.2",
    "@angular/platform-browser": "~8.1.2",
    "@angular/platform-browser-dynamic": "~8.1.2",
    "@ionic-native/admob-free": "^5.27.0",
    "@ionic-native/branch-io": "^5.26.0",
    "@ionic-native/core": "^5.0.0",
    "@ionic-native/email-composer": "^5.26.0",
    "@ionic-native/facebook": "^5.27.0",
    "@ionic-native/fcm": "^5.26.0",
    "@ionic-native/google-plus": "^5.26.0",
    "@ionic-native/in-app-browser": "^5.24.0",
    "@ionic-native/in-app-purchase-2": "^5.21.6",
    "@ionic-native/ionic-webview": "^5.27.0",
    "@ionic-native/keyboard": "^5.20.0",
    "@ionic-native/social-sharing": "^5.19.1",
    "@ionic-native/splash-screen": "^5.0.0",
    "@ionic-native/status-bar": "^5.16.0",
    "@ionic-native/youtube-video-player": "^5.27.0",
    "@ionic/angular": "^5.1.1",
    "@ionic/lab": "^2.0.13",
    "@ionic/storage": "^2.2.0",
    "@ngx-translate/core": "^11.0.1",
    "@ngx-translate/http-loader": "^4.0.0",
    "@types/hammerjs": "^2.0.36",
    "angularfire2": "^5.2.3",
    "branch-cordova-sdk": "4.1.3",
    "cc.fovea.cordova.purchase": "8.1.1",
    "cordova": "^9.0.0",
    "cordova-admob-sdk": "0.24.1",
    "cordova-android": "8.1.0",
    "cordova-ios": "5.1.1",
    "cordova-plugin-add-swift-support": "^2.0.2",
    "cordova-plugin-admob-free": "0.27.0",
    "cordova-plugin-androidx-adapter": "^1.1.1",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-email-composer": "0.9.2",
    "cordova-plugin-facebook4": "6.4.0",
    "cordova-plugin-fcm-with-dependecy-updated": "6.4.1",
    "cordova-plugin-googleplus": "8.5.0",
    "cordova-plugin-inappbrowser": "^3.2.0",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "5.0.0",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "2.4.3",
    "cordova-plugin-video-player": "git+https://github.com/moust/cordova-plugin-videoplayer.git",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-plugin-wkwebviewxhrfix": "git+https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfix.git",
    "cordova-plugin-x-socialsharing": "6.0.0",
    "cordova-plugin-youtube-video-player": "2.4.0",
    "cordova-promise-polyfill": "0.0.2",
    "cordova-sqlite-storage": "5.0.0",
    "core-js": "^2.5.4",
    "es6-promise-plugin": "4.2.2",
    "firebase": "^7.6.0",
    "hammerjs": "^2.0.8",
    "iso": "5.2.0",
    "promise-polyfill": "^8.1.3",
    "rxjs": "~6.5.1",
    "safe-json-parse": "^4.0.0",
    "save": "^2.4.0",
    "sha1": "^1.1.1",
    "tslib": "^1.9.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular-devkit/architect": "~0.801.2",
    "@angular-devkit/build-angular": "~0.801.2",
    "@angular-devkit/core": "~8.1.2",
    "@angular-devkit/schematics": "~8.1.2",
    "@angular/cli": "~8.1.2",
    "@angular/compiler": "~8.1.2",
    "@angular/compiler-cli": "~8.1.2",
    "@angular/core": "^8.1.3",
    "@angular/language-service": "~8.1.2",
    "@angular/router": "^8.1.3",
    "@ionic/angular-toolkit": "^2.2.0",
    "@types/jasmine": "~3.3.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "^5.0.0",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.4.0",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.15.0",
    "typescript": "~3.4.3",
    "video.js": "^7.6.6"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-keyboard": {},
      "cc.fovea.cordova.purchase": {
        "BILLING_KEY": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiyFRX/DIuI6nhRPPXE7mflmWUI2Bpp+vgkTVAZ5NrBbq2p1lp/rbLyNP0SSFib5Xl8IE6CeZ6rTyqUx6mDexaeXtySY1sULMiAJXPbYlekRUoC+E5nMsGiJkA4rzbjqjYSyVad2uDTnTUOExzyKHTCq3G0njG5tnuFnPqLkQ5prDkkGzXmWdJ7rTCWa8H/xCE6NQXrIIB6r6unvFBgW9xmyZ1HUwSXIZSnpW/dDjzr3ZsxN5Y3dx6wvBngL3dcAXxf3TKeCifR+3SIDgiwdZ7LXF4qWE88NY7gktX6mYUK2Kw3YELb/EkmFbR1nnfUSW+zZnyK272Ieuke/qGLguJwIDAQAB"
      },
      "cordova-sqlite-storage": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-x-socialsharing": {
        "ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
      },
      "cordova-plugin-facebook4": {
        "APP_ID": "476040099666763",
        "APP_NAME": "Chatrz"
      },
      "cordova-plugin-googleplus": {
        "REVERSED_CLIENT_ID": "com.googleusercontent.apps.648101751269-jdfl4j22gtg08lb92t18l7chal1j4ms5",
        "PLAY_SERVICES_VERSION": "15.0.1"
      },
      "cordova-plugin-androidx-adapter": {},
      "cordova-plugin-email-composer": {
        "ANDROID_SUPPORT_V4_VERSION": "27.+"
      },
      "cordova-plugin-inappbrowser": {},
      "branch-cordova-sdk": {},
      "cordova-plugin-youtube-video-player": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-fcm-with-dependecy-updated": {
        "FCM_VERSION": "19.0.0",
        "GRADLE_TOOLS_VERSION": "3.5.3",
        "GOOGLE_SERVICES_VERSION": "4.3.3",
        "SUPPORT_LIBRARY_VERSION": "28.0.0",
        "ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher"
      },
      "cordova-plugin-wkwebviewxhrfix": {},
      "cordova-plugin-admob-free": {
        "ADMOB_APP_ID": "ca-app-pub-3931564863766938~6745657311"
      }
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
}

thanks in advance

Originally posted by @jffs in https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/issues/106#issuecomment-652697310

andrehtissot commented 4 years ago

@jffs Firstly, I'd recommend that you clone and run one of the example tests. As having Push working on iOS depends on many factors, due to Apple's demands.

on iOS, Push notifications only works locally with a special certificate (https://customersupport.doubledutch.me/hc/en-us/articles/229495568-iOS-How-to-Create-a-Push-Notification-Certificate). Otherwise only from builds installed from TestFlight or Apple Store. Apple's rules. And only on real devices.

jffs commented 4 years ago

Finally I've got it worked by re-uploading the certificates on firebase console. So stable as myself in quarantine.

El vie., 3 jul. 2020 a las 13:22, André Tissot (notifications@github.com) escribió:

@jffs https://github.com/jffs Firstly, I'd recommend that you clone and run one of the example tests. As having Push working on iOS depends on many factors, due to Apple's demands.

on iOS, Push notifications only works locally with a special certificate ( https://customersupport.doubledutch.me/hc/en-us/articles/229495568-iOS-How-to-Create-a-Push-Notification-Certificate). Otherwise only from builds installed from TestFlight or Apple Store. Apple's rules. And only on real devices.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/issues/118#issuecomment-653613993, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2XSIMYP5D6VZOIMJ2QGJDRZYAUTANCNFSM4OP47ARQ .