- I suppose you are implying that I am no longer familiar with BB10, but I have a multitude of BB10 devices that I continue to use every day.
There is no debate - specs are specs (from the Android Runtime developer blog):Last edited by conite; 08-10-17 at 01:18 PM.
08-10-17 12:44 PMLike 0 - I don't usually get into this particular argument since I'll abdicate my knowledge about the runtime and how android apps work within it, but I know what wingnut is asking about, and it's something I've wondered about as well.
I've had android apps on my Z10 that I won't look at, much less open, for weeks - if not months. I have them, tried them, then found another source for whatever I got it for in the first place. Yet, I'll leave them installed just in case.
But, at some point, I'll open the Device Monitor app to check out something else or clear a cache, and I'll find that a few of the android apps I have will show wi-fi and mobile data usage, and cpu and memory usage all throughout the time of no use by me. The NPR app was notorious for having a lot of apparent activity even if I hadn't opened it in several weeks.
If the app is not supposed to run when it's not open, how is the Device Monitor registering all this activity?
And I'd turn off all things that could be turned off in permissions - including turning off notifications - just in case.
Now, not all of my android apps would register activity, mind you. But a few select apps would.
So, that's why it begs the question. Honestly, regardless of what the developer site says, the BB10 OS itself seems to be saying something else.08-10-17 03:39 PMLike 0 - The only way to run a permanent background tasks on Android is to use a service:
https://developer.android.com/guide/.../services.html
BlackBerry OS10 doesn't allow services to run if the app was closed. It's clearly stated in the developer docs. All services are stopped when the app is closed.08-10-17 03:48 PMLike 0 - The only way to run a permanent background tasks on Android is to use a service:
https://developer.android.com/guide/.../services.html
BlackBerry OS10 doesn't allow services to run if the app was closed. It's clearly stated in the developer docs. All services are stopped when the app is closed.
Posted via CB1008-10-17 05:16 PMLike 0 -
-
- The Android Runtime is a funny thing. In order to keep the Android environment functioning and current, it tends to cycle through installed apps occasionally (in addition to at boot time).08-10-17 05:28 PMLike 0
- The only way to run a permanent background tasks on Android is to use a service:
https://developer.android.com/guide/.../services.html
BlackBerry OS10 doesn't allow services to run if the app was closed. It's clearly stated in the developer docs. All services are stopped when the app is closed.
https://community.blackberry.com/message/56560
But Android apps like WhatsApp, Messenger, Telegram, etc are able to receive instant notifications when the active frame is closed and the screen is off. The runtime probably isn't cycling through the apps enough to make that happen (it would burn through your battery in no time)?08-10-17 05:45 PMLike 0 -
But Android apps like WhatsApp, Messenger, Telegram, etc are able to receive instant notifications when the active frame is closed and the screen is off. The runtime probably isn't cycling through the apps enough to make that happen (it would burn through your battery in no time)?08-10-17 06:32 PMLike 0 -
This refers to when the screen is off, but the app IS STILL running (not closed).
The BlackBerry developer specifically refers to the dev blog:
"Referencing our Unsupported Software Features for Android on BlackBerry 10, you can see that background services are not fully supported. This should answer your first two questions."08-10-17 06:43 PMLike 0 -
It's similar to how headless apps work, you're only receiving notifications and updates if the app has an active background process. If the user or the OS close it (due to low memory for example) the notifications will stop.
You're misreading the post you linked to.
This refers to when the screen is off, but the app IS STILL running (not closed).
The BlackBerry developer specifically refers to the dev blog:
"Referencing our Unsupported Software Features for Android on BlackBerry 10, you can see that background services are not fully supported. This should answer your first two questions."
- Will my service keep running if more than 8 Apps have been started after mine? (And the user did not hit the close button)
(There are many thing that factor whether your Services gets to run or not, which is not limited to but includes # of apps already running and memory state of the device).
- Would the 'headless' mode in 10.2 help me? (I can currently only test with 10.1, because my carrier has not unlocked 10.2, yet)
(No, this is a native thing. Your app is already technically headless)08-10-17 07:27 PMLike 0 - The only way the runtime can handle this is if the app has an active service that is listening for notifications (as non BB World apps aren't using BlackBerry's push services). A way to test this is to close an Android app that's receiving notifications via Device monitor or an app like Greenify, any notifications will stop after that.
It's similar to how headless apps work, you're only receiving notifications and updates if the app has an active background process. If the user or the OS close it (due to low memory for example) the notifications will stop.
That's the wrong post (also note that they use the word "fully"), it's the one marked "Correct Answer", specifically these answers,
Also, the Runtime itself absolutely handles the notifications. When you install an Android app, the Android environment sets up the whole thing.08-10-17 07:34 PMLike 0 -
https://community.blackberry.com/thread/16697
I'm not saying it's as good or as reliable as a headless app or comparable to an actual Android device, but services can start on BB10 (and you've even alluded to this as well in your previous post) so users should definitely keep that in mind, especially if they're experiencing battery drain or slowdown.
Also, the Runtime itself absolutely handles the notifications. When you install an Android app, the Android environment sets up the whole thing.08-10-17 09:37 PMLike 0 - The answer isn't specific to the app list which is what I'm pointing out. Here's another post by the same developer that's more clear on the issue, note that they're responding to someone who is quoting the docs.
https://community.blackberry.com/thread/16697
The runtime definitely handles it at an OS/user level but the only way it can receive these notifications is via a service that is able to communicate with the app's server. Also, in a push notification the OS will only receive data (usually in a JSON format), how can it parse it to show in the hub without help from the app (especially if it's encrypted data)?08-10-17 09:41 PMLike 0 - Again, he's responding to someone that quoted the docs. We can't have it both ways where the runtime can occasionally wake up an app service or receive data and not run at all when closed.08-10-17 09:53 PMLike 0
- I see nothing here that has contradicted the official Android Runtime spec - "background services are not supported on BB10".08-10-17 10:09 PMLike 0
-
-
-
Posted via CB10
Edit: never mind. Downloaded last revisions for 3.3 and 3.2 Keep branches and tested them after patching. You're right, v3.2.505 is the latest one not crashing.Last edited by Wolfgan; 08-11-17 at 11:37 AM. Reason: new info
08-11-17 05:11 AMLike 0 - anyone who watches device monitor regularly and tries to kill off annoying android apps knows that some die and stay dead, some respawn occasionally and some continually! the chart reveals battery, memory, cpu, and mobile data use by these apps. all this while no android apps (or any apps at all!) are in the foreground, and the screen is locked. theres no need to tell us it isnt true...it right in front of our eyes. also: notifications.
Posted via CBXLast edited by wingnut666; 08-11-17 at 10:38 AM.
08-11-17 09:43 AMLike 0 - anyone who watches device monitor regularly and tries to kill off annoying android apps knows that some die and stay dead, some respawn occasionally and some continually! the chart reveals battery, memory, cpu, and mobile data use by these apps. all this while no android apps (or any apps at all!) are in the foreground, and the screen is locked. theres no need to tell us it isnt true...it right in front of out eyes. also: notifications.
Posted via CBX08-11-17 09:49 AMLike 0 - Lots of killer info, and thank you to Cobalt for doing this!!
I have, so far, mostly everything working. Although I cannot get youtube to work! I've downloaded the patched version listed in the first post, and have it whitelisted as well. But when opening I get the "Get Google Play services" error. "Youtube wont run without google play services, which your device doesnt have" Google Play music works! The play store works! Anybody know what gives?08-11-17 11:01 AMLike 0 - Lots of killer info, and thank you to Cobalt for doing this!!
I have, so far, mostly everything working. Although I cannot get youtube to work! I've downloaded the patched version listed in the first post, and have it whitelisted as well. But when opening I get the "Get Google Play services" error. "Youtube wont run without google play services, which your device doesnt have" Google Play music works! The play store works! Anybody know what gives?
In the meantime, here's YouTube:
https://www.dropbox.com/s/bbc7i9bvko...tched.apk?dl=008-11-17 11:12 AMLike 0
- Forum
- BlackBerry 10 Phones & OS
- BlackBerry 10 OS
Cobalt's official Google Apps landing page
Similar Threads
-
Which android app you want to run on your BlackBerry
By amritanshu singh in forum General BlackBerry News, Discussion & RumorsReplies: 116Last Post: 05-19-18, 10:54 AM -
Will the amazon app store kill the blackberry world app store?
By Allgoodnicknamesaretaken in forum BlackBerry PassportReplies: 26Last Post: 01-28-15, 11:23 AM -
Getting the PayPal app for my new Passport?
By JVRudnick in forum BlackBerry PassportReplies: 22Last Post: 12-22-14, 10:29 PM -
Facebook & Crackberry Apps on Passport
By UKAsh in forum Site and App Feedback & HelpReplies: 5Last Post: 11-05-14, 10:43 PM -
BB Link type App for iphone 6 - ipad ??
By Chopper110 in forum BlackBerry Z10Replies: 7Last Post: 10-06-14, 04:01 AM
LINK TO POST COPIED TO CLIPBOARD