-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impr(android): implement foregroundServiceType parameter #11197
Conversation
|
a2a74f9
to
e70d285
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR: Pass
@garymathews on clicking start background button error throws.
|
@keerthi1032 Could you re-test this? I forgot to include the tiapp.xml...
<service url="locationService.js" android:foregroundServiceType="location"/>
... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FR Passed: Service.foregroundNotify()
now supports "foregroundServiceType"
for Android Q. Tested with the test case mentioned above.
Note: for the test case I changed the backgroundServiceBtn.addEventListener
to include service = null
after the final else
.
console.log('Stopping background location service...');
service.stop();
backgroundServiceBtn.title = 'START BACKGROUND SERVICE';
service = null;
Test Environment
MacOS Catalina 10.15 Beta
Node.js ^8.11.1
Android Pixel XL 7.1 Emulator
"NPM":"4.2.15","CLI":"7.1.1"
Java Version 1.8.0_131
Android NDK: 12.1.2977051
foregroundServiceType
parameter intoTi.Android.Service.foregroundNotify
TEST CASE
tiapp.xml
locationService.js
app.js
JIRA Ticket