I'm making a messaging app on iOS and want to send the user notifications when they receive a message even if the app is in the background. Would I have to initiate the setMinimumBackgroundFetchInterval to a few seconds? Would that be too draining on the battery to constantly perform checks with this method? Are there any other methods I should look into to perform this function?
Also, general mobile app development thread.
>>59775555
Look into push notifications
>>59775555
Why there's no waifu app on the Play Store / App Store ?
>>59775602
I'm fine with notifications. They work while the app is running but not when it's in the background so I'm trying to figure out a way of being able to read a change in my database to trigger a notification function to be ran.
>>59775617
You should make it and sell it for $4.99. You'll make some serious neet bucks.
>>59775620
I don't know anything about IOS but in Android you register the app to receive broadcasts when a push notification is sent. Polling a server every second for a messaging service would be terrible for battery life
Not exactly related to the actual point, but, if i want to have a job in the future related to the development of android distribution and android related stuff, which college/university course should i apply too?
>>59775642
I'm not trying to receive a broadcast. I want a notification to be presented to a user when another user messages them.
I use Google's Firebase database API to listen to any changes made to a specific portion where the messages are recorded. When a new message is added, it triggers a local notification on the user's device.
I'm fine with how notifications work, I'm just having trouble keeping the application listening and running functions while in the background.
>>59775555
I'm using Clover to read this thread and after seeing its beautiful sourcecode on github it makes me want to give up and cry. Someone give me motivation, are my standards too high or is it actually easy to make something like this if I know what I'm doing.
>>59775663
Udacity android dev nanodegree
>>59775663
Take Android Dev classes to know how everything works. Then Google what languages are used to make Android Distros and learn those too. Data Patterns and Runtime Optimization would also be needed.