traccar / traccar-manager-ios

Traccar Manager for iOS
https://www.traccar.org/manager
Apache License 2.0
109 stars 193 forks source link

Push notifications #32

Closed evallgar closed 5 years ago

evallgar commented 5 years ago

Hi there!,

I already downloaded source manager app for ios. Also added GoogleService-Info.plist file to the application. My firebase project server key is already added at conf.xml file in my own server instance.

When I run from Xcode the application (regardless my own iPhone or emulator) there is not a Modal screen requesting permissions for "allow notifications". Server address screen appears, I type my own server instance domain and everything goes normal so far. Neither a notificationToken is added to my user's attributes.

Is there something i'm missing here?

Thanks in advance

tananaev commented 5 years ago

Sounds correct. Debug the code to see what the issue is.

evallgar commented 5 years ago

When creating the ios App on Firebase console, step 3 refers that I shall execute three pod commands (init, firebase/core and install), but I already executed pod install when downloaded manager. Shall I execute those three commands? Sorry, Im not an Xcode/Swift expert.

tananaev commented 5 years ago

You just need to run install. Also, make sure that you are using "google" build type.

evallgar commented 5 years ago

Thank you very much for your help. I was indeed using debug build type. Once I changed to Google build type execution went as expected.

Thanks again for your help.

evallgar commented 5 years ago

Product -> Scheme -> Edit Scheme -> Run -> Build Configuration

josuelmm commented 4 years ago

Hello, I followed this tutorial and even then I don't get notifications. Perfectly added the GoogleService-Info.plist but they don't come. Does APNS have anything to do with it?