-
Notifications
You must be signed in to change notification settings - Fork 5
A better way to notify about parcels statuses #1
Comments
That "server" is actually straight towards posti own server. I don't forward data on any way. I don't have server assosiated towards this app. So this is all source code for this whole app right here. |
You can make new branch and add your developments there, I will review, test, merge and build done works. |
I had long time ago problem that posti server ip was changing so I used my own domain service provider to stay up to date with their server. That problem no longer exists so I can change that to direct one. |
Great! Then I can create a php script to push firebase push messages.
…On Fri, Jan 31, 2020, 10:09 Norkator ***@***.***> wrote:
I had long time ago problem that posti server ip was changing so I used my
own domain service provider to stay up to date with their server. That
problem no longer exists so I can change that to direct one.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJU4T5XJ4XYPUTEBD4WGMNLRAPMCBANCNFSM4KOCZBDA>
.
|
Where will this php script be located at? I don't allow any random servers due privacy issues |
Hello, if you can, you can set it running on your server with cron. It will
push a FCM Push notification to the app, requesting to check for parcels
statuses, and bypassing the Android's "doze", which restricts running any
foreground services.
If you want, you can create a new repo for that server part.
…On Fri, Jan 31, 2020, 12:01 Norkator ***@***.***> wrote:
Where will this php script be located at? I don't allow any random servers
due privacy issues
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJU4T5TBH7OKZ2BAGXGISGTRAPZGZANCNFSM4KOCZBDA>
.
|
@norkator Even if it's on my server, any user data will not be saved. All updates Will Be done on the user's device. Push update triggers the update. 😉 |
Okay we'll see later when I review done works. Thanks for participating. |
@norkator I made an separate repository for the server. https://github.com/developerfromjokela/Paketin-Seuranta-Server. You can fork it, to add more code if you want. This script will push an push message to the app, and the Firebase listener in the app is going to trigger the update. |
Now that I see that you are very skilled so I think I stay out of this fire base notification development. I can set it later to run on my server but will only use directly your version so not going to do my own forks. I let you be specialist on this thing. Have to thank you again for participating. So basically to enabled FCM I need to set up server key, set up script on my server with it but what about at Android app side, any requirements now there? |
I double reviewed code because I don't understand this part "the Firebase listener in the app is going to trigger the update." -> I haven't yet found this " Firebase listener " so how this works or is this yet to be implemented? |
The app needs to have FCM listener service. It haven't been implemented yet.
…On Sat, Feb 1, 2020, 18:31 Norkator ***@***.***> wrote:
Now that I see that you are very skilled so I think I stay out of this
fire base notification development. I can set it later to run on my server
but will only use directly your version so not going to do my own forks. I
let you be specialist on this thing. Have to thank you again for
participating.
So basically to enabled FCM I need to set up server key, set up script on
my server with it but what about at Android app side, any requirements now
there?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJU4T5XZCOE4M7DKK2JQZDTRAWPVNANCNFSM4KOCZBDA>
.
|
I have server key now so I set up your fcm server code up and running on my server ready for this. |
@developerfromjokela we have problem: #5 maybe should drop support for Kitkat, what do you think? or should we try keep support. based on statistics only few people really have older Android version so obviously I will drop support. |
Is there an dependency that doesn't support KitKat?
I think we should stop the support when it's necessary, otherwise it's
great to keep supporting these old devices 😉.
Are there other reasons why you don't want to support KitKat? Let me know
😀.
…On Sun, Feb 2, 2020, 12:19 Norkator ***@***.***> wrote:
@developerfromjokela <https://github.com/developerfromjokela> we have
problem: #5 <#5>
maybe should drop support for Kitkat, what do you think? or should we try
keep support.
based on statistics only few people really have older Android version so
obviously I will drop support.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJU4T5RVUEANSX6BZRQ6LE3RA2MZNANCNFSM4KOCZBDA>
.
|
I just dropped it. Released update. |
Ok. When will you release the update to Google play? |
Its already in Googles processing |
It's done, closing the issue |
Hello,
I was looking at the source code, and there's some requests to your server for Finland Post. Can you make that open source, so we can improve things there?
I was planning to add push notifications, because starting from Android 8.0, background threads are getting killed after a short time of running. Because of this, app's notifications aren't working. 😄
We can implement the server to push messages every x minute to check the parcels status. So the background threads will not be needed.
The text was updated successfully, but these errors were encountered: