Receiver app for push notifications from multiple sources (Android only lmao)
|
1 year ago | |
---|---|---|
ass | 2 years ago | |
src | 2 years ago | |
.editorconfig | 1 year ago | |
.gitignore | 2 years ago | |
LICENSE | 2 years ago | |
Pushem.apk | 2 years ago | |
README.md | 2 years ago |
This shit is a dankass receiver app for push notifications from (eventually) multiple sources. [=[=[==[[=[
You can (de)register per service whenever you want. The corresponding device UUID will also be displayed and can be copied just by tapping on it (you might need to longpress). ;]
Currently it only works with OneSignal, which in turn connects to platforms such as Firebase Cloud Messaging (FCM) for Android and Apple Push Notification Service (APNS) for iOS to actually distribute the notifications to devices. I prefer using OneSignal instead of connecting to FCM and APNS meinself, since you'll have 1 dashboard where you can see all users at once instead of having to log into every one separately. =]
As of writing this shit, OneSignal is free for:
Which is p gucci. ;]
Also, if you deregister, all it actually does is unsubscribe you. Meaning your device will still be listed in the dashboard but it won't be able to receive notifications.
Alright, so this is necessary to make sure your device(s) won't end up in my OneSignal account, but rather your own.
Pushem
as well ;]Google Android (FCM)
platform and set up the Firebase connection by following OneSignal's directionsServer API
(at the bottom y0) because at least the Android one requires you to check for a subscriber at the endPushem
app, go to Settings
> Keys & IDs
to see that inf0rmationApp ID
with the corresponding value from above, keep the settings screen open/active until laterMessaging
tab), this helps down the road when more push services are addedOneSignal
(we'll be using one group per pr0vidur ;])Notification channel group name
with the name you just entered (it's not case-sensitive but otherwise it needs to match eggzactly)temp_sensor
) and set some defaults, these settings can later be changed within Android through the regular Settings
app > Apps
> Pushem
> App notifications
(or something similar, prolly differs per device/vendor lol)Channel ID
on the bottom right and again slam that in the config of the sending application (if necessary/available 0bv m8)Audience
> All Users
, where you should see your deviceMuy importante:
Restored
for already received but not dismissed notifications. Pushem tries to move it to the group you created above to keep everything from 1 provider together. If you fail to set the group before receiving notifications, it will be unchangeable and it will remain under Other
. The only """fix""" is to uninstall the app so Android will clear these notification channels, then reinstall and do it right. ;] I could have Pushem delete and recreate the channel, but if multiple providers create an ungrouped category with the same name, shit gets funky. ;] So I won't bother.temp_sensor
to make sure that it only sends me shit.
Shit should be p self-explanatory imo tbh. ;]
You'll need to make some adjustments if you want to release signed APKs lol. Refer to the section right here (only applies to Mac OS X, if you're on Windows then idk how to do something similar :>).
Simply change the build variant in your Andr0id IDE to debug
, then it'll have OneSignal using debug mode too and you can see all the requests it's doing (and the responses it receives).
Alternatively, if your problem is that notifications don't arrive, check deez nuts docs from OneSignal:
So far I haven't yet had this problem though. =]]]]