Layout/Template for meteors hot code push - android

I´m using a loading template to subscribe my client in all needed collections. When I change some stuff there is a HCP to the client that results in a refresh of the page (white blank screen for some ms).
I have 2 questions.
Is it possible to create a template and show it to the client when there is a HCP to avoid the blank screen?
Is it possible to do a HCP only when the app is running in the background on iOS and Android

Currently, there is no way to avoid the white screen when hot code push is happening. On mobile, you can use the mdg:reload-on-resume package (https://github.com/meteor/mobile-packages/tree/master/packages/mdg:reload-on-resume) to only let hot code push happen right when the app is opened. Unfortunately this is still not in the background, but it's as close as you can get right now.

Related

Reopen my Flutter app in background on FCM message

all day I already despair of a waking up system for my VoIP app. I must have already read over 100 articles and documentation about it, however I have not found a solution that works for me.
Use case:
My app is running in the background. That means the home button was pressed
after my app was started and the device is in the home screen. As soon as a notification arrives, the app is supposed to open again on a certain route because a call is coming in.
In the lock screen I managed this pretty easily with flutter_local_notifications and within the app it was of course no problem either.
Note:
Only Android is important, the rest can be neglected
Android version 10+
Flutter version 2+
I appreciate any input on how to solve my problem and have a good week.
Kind regards,
Shiro

Background periodic task and notification showing

I was looking online for the best solution but couldn't find exactly what I wanted.
So, I am developing an app using React Native, and trying to make it so that even when the app is closed, once an hour a background task (which will do some fetching) will run, and at the end of it a notification (not a push notification) with a custom message will show up.
How can I achieve that?
Thank you upfront.
For Android you can use Headless JS which ships with RN. For iOS you'll need a package like react-native-background-task, which works with both. Android only projects you're probably better off just sticking with Headless.
You'll need react-native-background-task to perform the task you wish like fetching every hour, and then using some notifications library(i prefer firebase), you can show the notification to the user screen.
Also in firebase there is scheduling-notifications with which you can schedule notification showing on the screen (maybe you find a use case needing it).

How to always show notification on Android using cordova-plugin-local-notifications

I got the plugin to work. Its great, but I am not an android user neither have an android to test it with.
With what I got to see from the emulator, notifications do not show when the app is open. It plays a sound and add a bell icon on the status bar. Is this the default behavior? My app wont be scheduling any tasks for the future, it will receive some info via web sockets that I would like to explicitly show to the user. I was expecting something like a ios banner to pop of the screen. Is this possible?

Webapps in Android: Get new content without website reload

I have an android app which is a wrapper around my mobile site. We have a site that changes everyday, and I’d like to have a method by which I can notify the user that there’s new content to be had, or just reload it programmatically.
This obviously happens when the app relaunches, but sometimes users will keep the app in sleep mode and re-open it the next day and they see a stale version of the website. Is there any way around without going native? One method I thought off was using a push notification to reload the app (i.e. use GCM to tell the app to reload the page) except I don’t want to push a new version as this would require permission changes and that would break auto-updating. I though of using socket.io for the task as I'm already using it in my app but I don’t think it'll work if the app is the background (will it? I’m an android newbie)
Thanks for any help!
When the application returns from sleep - onResume() of the activity life cycle may be invoked. If you reload the webview on this listener, that should resolve it.
Unless i am missing something very significant, this simple solution might work.

Screen to show app output inside app in android

I'm writing an android app just to get familiar with the OS and API. I'd like to show what my app is doing to the user in a seperate screen and not via notifications. The reason is that I'd like to show the user exactly what the app is querying and how long it took etc. I saw an example of this in the superuser app which shows what the app is doing when it is updating itself.
Is there a library to do this?
Is it as simple as just showing a text box and then populating it programatically?
I would have done it so..
Just push state changes to your UI thread and display them there.
You can do that via BroadcastReceiver, which is intended to let background services communicate with UI activities, or LocalBroadcastManager which is simpler version of the previous.
Here on StackOverflow you will find dozens of questions describing how to implement it.

Categories

Resources