එලකිරියෙ ඇප් හදන උන් ගොඩක් ඉන්නව නෙ. දන්න එකෙක් එහෙම නැත්නම් විසදුමක් තියන එකෙක් මේකට ක්රමයක් කියහල්ලා.
ඇප් ඩිවෙලොපින් වලදි තියන ලොකුම ප්රශ්ණය ෆොග්රවුන්ඩ් සර්විසස් නැතිවෙද්දි බොහොම ඉක්මනට බැක්ග්රවුන්ඩ් සර්විසස් සිස්ටම් එකෙන් කිල් කරල දානවා. ගොඩක් උන් විසදුම විදියට තියන් ඉන්නෙ ෆයර්බේස් වගේ පුෂ් නොටිවිකේෂන් සර්විසස්. මමත් ඕක තමයි කරන්නෙ. ලබ්බෙ ඇපොල් අප්පරියයි. මුන් කිල් කරනව කොච්චර මෙන්ටේන් එකේ රන් කරත් කිල් කරනවා. ඒත් බලහන් ඉමෝ වගේ ඇප් වල, අපි සිස්ටම් සෙටින්ස් ගිහින් ෆෝර්ස් ඩිසේබල් කරත් ලබ්බට මැසේජ් එනව කෝල් එනවා.
ඉන්ටර් නෙටියෙ දැන් අවුරුදු ගානක් විසදුම් හෙව්වත් සාර්තක විසදුමක් නම් තාම ලැබුනෙ නෑ. එක්සාම්පල් සියගාණක් කරල ඇති සාර්තක නෑ.
දන්න එකෙක් හුදී හෙල යක්ඛ ජනී පහසුව සදහා කියල දියල්ලා. අපි වාඩි වෙලා අහගෙන ඉන්නෙ.
1. to my best knowledge you cannot handle android service disposal call backs. that's how it created. for example, if the user swapped out the app, uninstall the app, or disposal of background services you cannot track that.
2. the only way to do this is to implement presence using uninterrupted service. if the server tracks the interruption of the service then we can take this as the app was killed or uninstalled.
3. for firebase ".info/connected" is what I used I guess you know that already. and it worked so far for me on a large scale. but as I see it's not a good solution. I tell you why
--first thing is that android doesn't allow us to track app kills cus it's the end user's choice. so build an app that the user doesn't suddenly close the apps (you have to design a system that every level of user can guess the next step. and clear paths end with a button to close a given transaction. this way user always ends up with an input at the end of every transaction. after that it doesn't matter if user kill the app or not )
-- since we cannot handle the user's choices we can ask the user to perform his presence every time we need it. simply use some push notification service and update his presence on your datastore
-- I always update users' last online time and last action performed and if they complete it. that way I know for sure before he kills or goes offline he did complete the last transaction. if not I load the uncompleted trans once he online and asked if you want to continue or open fresh
as you told for the developers, that is a headache. but we cannot change it, right? so try alternative things for that
ඉමෝ වගේ ඇප් දැනටම මොන මගුල අනත් කනෙක්ට් සර්වර් එකට. උන් අවුරුදු බර ගානක ඉදන් කරන නිසා අනිවා ක්රමයක් ඇති.
I agree with you on this.
I experienced this when I created some windows apps. some X company gave us a DLL for their devices and we can perform general tasks using that for some advance automation we request and they provide us another static lib + implementation and once we create a wrapper to make it used in our app it allows us to use device's windows memory locations and perform tasks by pointing it. I guess this kind of functionality must be there in android and companies like IMO must have some advanced access to them. but sadly there is no sign of that in any of the Android documents they have published
------
Post added on Jul 5, 2021 at 5:25 AM