Manager iOS app push notification

zvizdo3 years ago

Hi,

I successfully built the application downloaded from the firebase file and placed it in the root directory of the application and used the same Bundle ID and when I test on the simulator the apps run fine but push notifications doesn work.

Now I don't have an apple developer account.

Do I need to have a developer account to use the ios application and to enable push notifications via firebase or can the application be used without an apple developer account?

Anton Tananaev3 years ago

Where do you get the Apple key for push notifications without a developer account?

zvizdo3 years ago

Sorry I mean I used firebase key with traccar.xml file.

I do not have developer account with apple.

So if I understand , without developer account (which cost $99 per year) the push notifications can not be enabled in the iOS Manager app, is that correct?

But, can I just build the app without push notifications and use it without developer account ?

Thanx

Anton Tananaev3 years ago

A quote from Firebase docs:

To enable sending push notifications through APNs, you need:

An Apple Push Notification Authentication Key for your Apple Developer account. Firebase Cloud Messaging uses this token to send push notifications to the application identified by the App ID.

Without push notifications you can probably build and use it without a developer account, but you won't be able to distribute the app.

zvizdo3 years ago

Thank you very much for explaining.

Antonio Junior2 years ago

Greetings, could someone help me with a question please? I insert the json file in the project and the Firebase notifications on Android are arriving successfully, not on IOS, I checked the logs and it does not show any apparent errors. Is any other configuration necessary for notification to arrive on IOS? Thanks in advance.

{
  "type": "service_account",
  "project_id": "xxxxxxx",
  "private_key_id": "xxxxxxxxxxxxxxxxxxxxxxxxx",
  "private_key": "-----BEGIN PRIVATE KEY-----\nMxxxxxxxxxxxxxxxxxxxxxxxxxxxx=\n-----END PRIVATE KEY-----\n",
  "client_email": "firebase-adminsdk-glfvz@xxxxxxx.iam.gserviceaccount.com",
  "client_id": "xxxxxxxxxxxxxxxxxxxxxx",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-glfvz%40xxxxxxxxx.iam.gserviceaccount.com"
}