Is there a way to verify app launched successfully using monkey runner? Other than using image verification. May be using dumpsys?
If you inspect the result of
dumpsys activity activities
then you should find your Activity at the top of the stack, if was launched successfully.
Related
I'm needing help. I need to execute a job (send to the server the UserId and the user location) even if the app is closed. I have tried many different approaches but I couldn't make it work.
It's an Xamarin forms app (android & iOS). I'm focused on Android side.
I have a push notification service working (FCM using the azure-NotificationHub) if necessary for the proposed solution.
If you need this task executed at a regular cadence, I would recommend adding a service to your application that will run in the background and largely be separated from the state of the rest of your application. You can find some documentation on that here: Run Background Service - Android.
You mentioned that you have a Notification Hub if necessary - essentially the Android Client SDK for Notification Hubs will be creating a service like the one linked above and listening for events to trigger certain actions. If you need data at random (i.e. not at a regular cadence) this could be a good approach. However, assuming you just want an updated location every few minutes, it's probably simpler to just run your own background service.
I am using a deploy hook from my headless CMS (prismic) to kick off a build and deploy on my vercel hosted statically rendered nextJS site. The build time is variable, and I need to run a script after a successful build/deploy, which sends an email and push notifications to my registered users that new content is available. I don't want to do it before the build has finished, otherwise the users will get server side rendered pages instead of static.
I haven't been able to find any way to receive a notification that the build finished. What are my options here?
I do see that I could create a webhook and subscribe to the deployment-ready notification. Does anyone have a working example of this they could share?
https://vercel.com/docs/api#integrations/webhooks
I am using OneSignal in my Flutter application to receive notifications. I have created my own table within Flutter to save notifications but I cannot save messages that have been sent whilst the app has been terminated. However, I have found that the OneSignal package has it's own database installed on the device which captures everything no matter what state the application is in! So, to avoid duplicating data I want to use this database instead. It is located outside of the flutter app folder which is my issue (see image below).
How do I access this database? Does anybody know if it is the same on iOS (I haven't been able to check at this time).
Many thanks.
It's important to understand that if an app has been terminated, any onReceived handler will not be fired. We don't recommend using the local db at all. Your best bet is to use the respective notification extender services for each platform. Though you will have to write native code for this! Cheers
Edit:
ANDROID - NotificationExtenderService - This can be setup to receive silent notifications when your app is not running or to override how notifications are shown in the notification shade. See the Background Data and Notification Overriding section to set this up.
I've implemented real time remote config updates via the documentation here.
In general, it works as expected, except when it comes to experiments via A/B Testing. Changes to A/B Testing that affect remote config do not fire the update cloud function hook.
Does anyone know if its possible to have the functions.remoteConfig.onUpdate cloud function hook trigger when a change to remote config is made via an A/B Testing experiment change?
The only workaround I can think of is to have a dummy value in remote config itself that I change whenever an experiment is created/updated.
firebaser here
There is nothing built into Remote Config for that at the moment. But thanks to the integration between Cloud Functions and Remote Config, you can build it yourself.
One of our engineers actually just gave a demo for this last week. I recommend you check it out here: https://youtu.be/lIzQJC21uus?t=3351.
In this demo, there are a few steps:
You publish a change from the Remote Config console.
This change triggers Cloud Functions through a functions.remoteConfig.onUpdate event.
The Cloud Function sends an FCM message to all apps through a topic.
When an app receives this message, it shows a prompt that the configuration is out of date.
When the user clicks the "fetch" button, the app fetches the new configuration data from Remote Config.
I am trying to test the Trigger.io reload function on my app, and have created a new stream but there are no active users for any of these channels.
Does code need to be added in the app to subscribe users to the reload streams?
Currently there is a 15 minute delay in the reported user numbers.
However, if you have just installed a version of your app on a test device or run it in the emulator, you will be able to Reload it immediately even if the number of users showing up against the stream is still 0.
You do need to use the forge.reload.switchStream method in the app to put the user in the right stream. Or you can use the 'default' stream that is already there to reload all users without needing to add any extra code in your app.