You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Foreground Service should be running still (notification should still be visible in the notification center).
Now turn on or off WiFi (it must connect to an access point)
At this point the service should crash without giving any errors. Debugger should also detach immediately without anything on the output window.
Weird thing is, if the UI isn't killed (if you skip step 3 above) the service does not crash.
You will notice that no code is used in the solution from the Connectivity plugin. It only has to be installed in the project(s). Uninstalling the plugin from the projects fixes the issue.
Cheers,
Ertay
The text was updated successfully, but these errors were encountered:
I do believe that there are some potential crashers in your code when try to get the Activity from MVVMCross. Instead of using the .Activity simply use the ApplicationContext to create your intents. I would be concerned about MVVMCross having to be Init again in service as well so be aware of that too.
Hmmm, the steps I listed above don't say that you need to open the activity. (or maybe you were talking in general and not related to the Connectivity crash). But my app works fine once I removed the old connectivity plugin (will try 1.0.2 ).
Hey James,
You can find a demo solution here: http://1drv.ms/1xvg1lq
Steps to reproduce:
At this point the service should crash without giving any errors. Debugger should also detach immediately without anything on the output window.
Weird thing is, if the UI isn't killed (if you skip step 3 above) the service does not crash.
You will notice that no code is used in the solution from the Connectivity plugin. It only has to be installed in the project(s). Uninstalling the plugin from the projects fixes the issue.
Cheers,
Ertay
The text was updated successfully, but these errors were encountered: