Local notification help!

Peace Unto You! Y’all I’ve been at this for TWO DAYS loll, and now I’m officially stumped.

I’m trying to get these local notifications working in the notification center but it’s not working. I’ve tried everything I know of.

my goal is to every 10 seconds (for testing) send a notification which is a quote from a total of 77 quotes, and then if the notification is tapped it will open the game. In addition to this I would like the quote that’s sent start from 1 all the way to the 77th quote and when all 77 quotes are used, it loops to sending number 1 to 77 again. so the system has to remember if it has used a quote already. I also would like the quotes to be sent whether the game is running or not opened.

this must also all be done locally without a server.

I’m having issues trying to get it to work

I tried and starting getting errors and at this point forget everything I did I would like to start from scratch. How would I begin to do this?

Please don’t send me the manual cause I’ve spent 2 days with that and I’m here still. Like I’ve done everything, read the manual downloaded the example project and even THAT project doesn’t even send notifications to the notification center on the phone, I tried to use AI to give me a tutorial to do it myself, then I tried to use AI to code for me, I’ve tried to make the notification more simple, and the ONLY progress I’ve made is getting the system to recognize that my app can SEND notifications yet nothing sends.

I’m scrapping everything cause of Defold essentially bricked my building process, by saying a tmp file in the defold server is causing issues, so I had to delete the whole build ( I had backups) but I’m so over it. Please someone help me. This idea seems soooo simple, but when I found out not even the example project sends notifications to the notification center I felt discouraged lmaoooo.

This is sad yall fr, please help me. I’m confused, AI confused, my cousin confused, Defold gods please help us you are our only hope.

I even downloaded the defold notification manual as a PDF file to study it, but there’s no real tutorial for what I need

If the example project doesn’t work then let’s start there. Anything else won’t matter if the example which is supposed to work doesn’t. When you say the example project didn’t work I suppose you mean the one included with the extension? Ie this:

You did not mention which platform you tested on. Android or iOS?

It turns out there was already a report about missing permissions on Android 13 and above:

I’ve added the permission and updated docs and example to reflect this:

Peace Unto You! Thank you for your presence! Yeah I’m using Android. Thanks for getting the example project updated, so now if I reference it will it send notifications to the notification center? I’m going to work right now, but when I’m back home around 5:40pm (est) I’ma jump back into coding this idea. You’ve brought back a small flame by responding loll.

Now quick question when you update the permissions, where do you do that at? I’ve been having issues getting it to work when I was trying to do it myself. Like I would have a breakthrough by getting the system to know my game has the capability to send notifications, but no notifications would be sent, and no permissions were being asked when I started the game up. I theorize you would have to add them in the xml, but I was having 2 days worth of struggle so I took a break.

In my case it seemed like the code I made to send the quotes as notifications, wouldn’t be communicated to the system to actually do it. It was just like the system knew TO SEND notifications, but didn’t know where they were at to even send.

Thank you for answering all my questions we are very grateful!

Yes, please try the updated example included with the extension. You should now be able to schedule local notifications. I have verified the example project myself on an Android phone running Android 14.

After my update the PUSH_NOTIFICATIONS permission will be added automatically to your app. You do not need to do anything except adding extension-push as a dependency in your own project.