+2 votes

Hey,
Curretnly there is no 'built-in' support for push notifications in godot and due to this i decided to write a java plugin. Unfortunately it does not work but show a error neither.
I set the module path in the editor : *org/godotengine/godot/Notification
It does load and find the module (Engine.has_singleton("Notification") returns true ).
But calling singleton.notify() does output nothing.
Here are my two java classes:


Notification.java
code pile

LocalNotificationReceiver
code pile
and
gradle.conf

[dependencies]
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

Did i forget any dependencies or Permissions?
Thanks for your time and help!

P.S. (If you have a better solution please be so kind and provide it :P)
P.S.2.(sry for using external webpages but this forum has a characteree limit of 8k :/)

in Engine by (16 points)

1 Answer

+1 vote

You can use precompiled module for local and push notification for iOS and Android.
https://github.com/DrMoriarty/godot-local-notification
It can be installed from NativeLib repository. Just search NativeLib in AssetLib and download it into you project.

by (214 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.