hatzisn Expert Licensed User Longtime User Dec 18, 2018 #1 Dear all, How is this done? I am looking for something that would resemble the b4a service (start and run even when the application is suspended or closed (two cases). Thanks in advance
Dear all, How is this done? I am looking for something that would resemble the b4a service (start and run even when the application is suspended or closed (two cases). Thanks in advance
jahswant Well-Known Member Licensed User Longtime User Dec 18, 2018 #2 You’re posting on the wrong forum. Try push notifications. Firebase. When it arrives resume your service as needed. Upvote 0
You’re posting on the wrong forum. Try push notifications. Firebase. When it arrives resume your service as needed.
hatzisn Expert Licensed User Longtime User Dec 18, 2018 #3 I posted in iOS questions. I thought it would be appropriate, isn'it? Can you be a little more specific about this implementation? Who sends the notification f.e.? Please be as specific as you can because I am a 3-day only owner of b4i and being used in b4a I see a tone of differences in the two OSs and related development tools. Upvote 0
I posted in iOS questions. I thought it would be appropriate, isn'it? Can you be a little more specific about this implementation? Who sends the notification f.e.? Please be as specific as you can because I am a 3-day only owner of b4i and being used in b4a I see a tone of differences in the two OSs and related development tools.
jahswant Well-Known Member Licensed User Longtime User Dec 18, 2018 #4 You cannot start an app in iOS while in background if user terminated your app. If your app is in back use push to order a task. For android check this Upvote 0
You cannot start an app in iOS while in background if user terminated your app. If your app is in back use push to order a task. For android check this
ilan Expert Licensed User Longtime User Dec 19, 2018 #5 have a look at this: https://www.b4x.com/android/forum/threads/background-location-tracking.50246/ Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 19, 2018 #6 iOS doesn't allow you to run things in the background with the exception of a few specific tasks. What do you need to do in the background? Upvote 0
iOS doesn't allow you to run things in the background with the exception of a few specific tasks. What do you need to do in the background?
hatzisn Expert Licensed User Longtime User Dec 19, 2018 #7 @ilan Thank you Ilan, pretty informative... @Erel What I was looking for has to do with detecting bluetooth v4.0 (I think it's BLE) devices and run a code at device detection. I searched the NET and came up with this for the UIBackgroundModes Declaration ----------------- [string] UIBackgroundModes Possible Values ----------------- audio location voip external-accessory bluetooth-central bluetooth-peripheral fetch remote-notification I suppose I could exploit the red values and the iBLE library... I have four questions about this: 1) I wanted to ask where it is used the always-use-location description (does it display somewhere?) you have added in the thread that Ilan posted. 2) Also how can I spot the corresponding values for the other UIBackgroundModes Values (or are they constructed with the same logic as location) ? 3) I also suppose fetch can be used to download with iHttp and iHttpUtils in background... Am I right? 4) If I want to exploit two of these methods f.e. bluetooth-periferal & fetch I suppose I will add two UIBackgroundModes and four "descriptions"... Right? Upvote 0
@ilan Thank you Ilan, pretty informative... @Erel What I was looking for has to do with detecting bluetooth v4.0 (I think it's BLE) devices and run a code at device detection. I searched the NET and came up with this for the UIBackgroundModes Declaration ----------------- [string] UIBackgroundModes Possible Values ----------------- audio location voip external-accessory bluetooth-central bluetooth-peripheral fetch remote-notification I suppose I could exploit the red values and the iBLE library... I have four questions about this: 1) I wanted to ask where it is used the always-use-location description (does it display somewhere?) you have added in the thread that Ilan posted. 2) Also how can I spot the corresponding values for the other UIBackgroundModes Values (or are they constructed with the same logic as location) ? 3) I also suppose fetch can be used to download with iHttp and iHttpUtils in background... Am I right? 4) If I want to exploit two of these methods f.e. bluetooth-periferal & fetch I suppose I will add two UIBackgroundModes and four "descriptions"... Right?
Erel B4X founder Staff member Licensed User Longtime User Dec 20, 2018 #8 Start with reading these posts: https://www.b4x.com/android/forum/threads/ble-bluetooth-low-energy-library.46099/page-7#post-402461 It is not a simple task. Upvote 0
Start with reading these posts: https://www.b4x.com/android/forum/threads/ble-bluetooth-low-energy-library.46099/page-7#post-402461 It is not a simple task.