Skip to content
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

Question: Android 4.3. "Doing heavy tasks" text in tray. #39

Closed
AleksMeshkov opened this issue Nov 11, 2014 · 8 comments
Closed

Question: Android 4.3. "Doing heavy tasks" text in tray. #39

AleksMeshkov opened this issue Nov 11, 2014 · 8 comments

Comments

@AleksMeshkov
Copy link

screenshot 2014-11-11 11 50 59

Hi! Can I somehow change this frightening message to more user friendly one? If I can't is there any way to hide this from the tray?

Thanks!

@boltex
Copy link

boltex commented Nov 11, 2014

I did it last week :

Easy: find those strings in the code (see your plugins folder in your project.)

then delete the build files (in platform -> build -> ... ) and recompile , then reinstall on your mobile and voila!

@katzer
Copy link
Owner

katzer commented Nov 11, 2014

@AleksMeshkov, the messages are configurable. The notification itself is required.

cordova.plugins.backgroundMode.configure({
    title: '...',
    text: '...',
    ticker: '...'
});

The REAME will be updated soon.

@AleksMeshkov
Copy link
Author

@boltex, @katzer, thank you guys!

One more question to ask: is there any way not to show notification on Android? I found private Notification makeNotification() method in ForegroundService.java. Will It work If I comment out code of this method?

@katzer
Copy link
Owner

katzer commented Nov 12, 2014

@AleksMeshkov,

Yes its needed, see startForeground.
Without the visible part, the OS will kill the service sooner or later because or lower priority.

@AleksMeshkov
Copy link
Author

@katzer thank you very much.

hugojerez added a commit to hugojerez/cordova-plugin-background-mode that referenced this issue Dec 5, 2014
@AleksMeshkov
Copy link
Author

@katzer

Without the visible part, the OS will kill the service sooner or later because or lower priority.

Thank you! Does this OS behaviour applies only to Cordova based apps? As far as I know there are some apps that successfully live in background without any visible parts. Viber app, for instance.

Honestly speaking I don't think the idea of showing any additional and, in case of my app, useless notifications is good for user experience.

So, if there is any possibility not to show visual part I think it wold be cool to implement this like a feature.

But I there is no way to achieve this seems I have to get over with this...

@katzer
Copy link
Owner

katzer commented Dec 17, 2014

@AleksMeshkov, that flag can be added with the risk that Android will stop the service & app sooner or later.

@AleksMeshkov
Copy link
Author

@katzer that would be a very cool feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants