-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions about notifications #9
Comments
@tigz19 Hello! For remote (push) notifications the algorithm is dependent on using OS. For iOS you should do:
For Android of course the best notification solution is Firebase messaging. But I didn’t make new plugin for it yet. |
Thanks for your nice libraries, @DrMoriarty I see the documentation for Android plugins, I know the Android SDK, and it looks good for bundling Android and Godot functionality. Do you know anything about the status of Godot's iOS plugin support? As far as I understand, it will be much more convenient to create cross-platform libraries if such plugins are available for all platforms. |
I have seen that you made this awesome plugin, DrMoriarty. But the only thing I don't know how to do is a remote notification, and how will it work on Android. I know there is a register_remote_notification function, but I dont know it's parameters. Can you update the Usage section of the repository and add some example case (Firebase/custom)? Maybe I haven't seen the documentation, but it doesn't seem to be one though. If there is one, can you share it with us? Thanks in advance! |
@ViRGiL175 I'm sure that in Godot 3.2.4-stable will be new convient iOS plugin support. I'm going to update all my plugins to the new way when stable godot was released. @TIBI4 Yes, remote notifications for Android is not clear now. At first I'm going to make firebase-notifications plugin (because I use it for my projects) and later may be I will make more universal solution for android push notifications. |
@DrMoriarty HI, the token that I can get with this module is a token that I can use with Cloud messaging to send a notification to that device? Or the token that use FCM is other token?I mena is a registered token? |
Do you have firebase-notifications plugin already? @DrMoriarty I tried with the firebase-core and cloud messaging, but it doesn't seem to work |
I just released https://github.com/DrMoriarty/godot-firebase-cloudmessaging |
@DrMoriarty That´s only on Android? |
@DrMoriarty from native it say that is on Android and iOS but it is crashing on iOS, Installing firebase cloud messaging plugin from native and connecting the methods it should be enough? Also the framework in xcode is not there |
@DrMoriarty on Android: |
@martinpelli Put file |
@martinpelli it is for Android now. iOS version will be ready soon. Now I'm updating all my iOS plugins for support new godot 3.2.4 (with new iOS plugins interface). I hope plugins will be available during the week or so on. |
@DrMoriarty Thanks so much for this great library, much time saver |
@DrMoriarty I am getting these errors:
the weird thing is that on windows I am not getting this errors, the autoload is there on res://Scripts/messaging.gd and the script is there so I don´t understand |
It seems that you have issue with upper case symbols in folder name. Usually plugins install their gd-wrapper to |
@DrMoriarty yeah I tought that but I tested it changing name to scripts and I am having the same problem , so I am gonna try another way, thanks |
Try to close Godot and check your |
Also you can check your APK file (it just zip archive). You can see your folder names how they are stored inside. |
@DrMoriarty yes thanks! I am seeing that although I have changed the name of the folder , all the routes are still with the capital S, so I am fixing everything |
@DrMoriarty so after solving my problem, I can get the token so it´s working!! Thnaks! Now I have two problems:
Also I tried sending a notification to a token via http with the token that I get with your plugin , and this url: "https://fcm.googleapis.com/fcm/send"
before without the plugin, I was getting failure:1, so the token is working, |
@DrMoriarty Edit: IT´S WORKING!! The only problem now it´s that the user on the cellphone has to enable floating notifications, the sound of the notification and the notification on phone lockscreen for the app/game. Or maybe this is done automatically when uploading to playstore? |
Yes, if user don't enable notifications (or disable it) the app will never show any popup. |
Same issue as martinpelli but I didn't find how to solve it. In my app I have: func _ready():
messaging.connect('message_received', self, '_on_message_received')
func _on_message_received(message: Dictionary) -> void:
$Label.text += "Message received: %s\n" % str(message) When my server sends a message using "https://fcm.googleapis.com/fcm/send", the app shows the JSON in the mobile, so I know all the token part is right and the messaging chain is working. No notifications are shown. Local notifications are shown normally. Did I miss a step somewhere? Edit: nevermind, got it working. Problem was on server side ("notification" field was missing in the data array). |
Hello! Thanks for the hard work, your libraries are very helpful.
I have a couple of questions. Sorry for bad English, I hope you can understand me.
Can I receive push notifications using firebase?
How can i do this?
Also I see in the README
get_device_token () -> String
and register_remote_notification () but they don't work and return nothing am I right?
Can I set a specific time for scheduled notifications? Will this work if the application is closed?
The text was updated successfully, but these errors were encountered: