Comments (16)
The problem seems to appear only on your xamain.forms sample and not in your android sample app.
Maybe it has something to do with the Fragment?
from mapbox-android-binding.
I think this is the problem:
nitaliano/react-native-mapbox-gl#878
nitaliano/react-native-mapbox-gl#906
nitaliano/react-native-mapbox-gl#1023
Should got fixed with Mapbox 6.1.0
from mapbox-android-binding.
Same on my side, cannot start the app again after closing it.
You can check it using your own sample application.
from mapbox-android-binding.
How do you guys say closing it
? It works well at my end. (open <=> close)
from mapbox-android-binding.
Same, swipe the app away out of the recent apps(no explicit killing) and open it again -> infinite loop
from mapbox-android-binding.
I'm using it in a Fragment and did it like in your blog post:
public override void OnDestroyView()
{
mapView?.RemoveOnMapChangedListener(this);
mapView?.OnDestroy();
base.OnDestroyView();
}
from mapbox-android-binding.
@cschwengler On which device did you face the issue?
@Niach Have you faced the same issue on my sample?
Plz check device log where there are a lot of details for us to investigate deeper.
I didn't face any issues when closing app/opening app on simulator.
Cheers.
from mapbox-android-binding.
On a Oneplus 3 with Oxygen OS, Android 8.0
from mapbox-android-binding.
Hey,
I couldn't replicate your issue without more details.
Plz connect device and try to debug then get the logcat details.
Thanks.
from mapbox-android-binding.
Hey, i found whats going wrong. Its happening if you enabled the Mapbox TelemetryService.
Maybe you disabled it on your testing device. If its enabled and you try to restart the app, it hangs.
from mapbox-android-binding.
I made a video of your sample app: https://www.youtube.com/watch?v=AZg2D2dGa7U
After force-killing the app it works again, and if you disagree with the telemetry service it also works.
from mapbox-android-binding.
Plz check back v6.4 now.
from mapbox-android-binding.
Hi Guys,
I have just tested v6.4, and the bug still exists. Start app (OK), close it by pressing device back button (app closes), click on the app icon again (BUG: app freezes). It happens by Xamarin Forms. Tested on Samsung Galaxy A5, Android 8.0.0.
from mapbox-android-binding.
After investigating this bug I found that calling Android.OS.Process.KillProcess(Android.OS.Process.MyPid()); in maprenderer after fragment = null; in dispose method it "solves" the problem, the app can be re-started successfully. I don't feel it a bugfix of course, it seems a brutal "solution", but hopefully can lead to the fix by pointing out it can be some lifecycle / fragment dispose related problem.
from mapbox-android-binding.
When you open app by tapping a push message on Android, app start also hangs if there is a MapBox map on the start page of the app. In this case it does not matter how you closed it before, so a simple home button pressing close also can lead to this error. Samsung Galaxy A5, Android 8.0.0.
from mapbox-android-binding.
App freezes due to fragment dispose related problem. This issue occur in Xamarin Forms. I tried not using fragment and follow the same approach like what amay077 did in Xamarin.Forms.GoogleMaps in creating the view that can be found in this link https://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/master/Xamarin.Forms.GoogleMaps/Xamarin.Forms.GoogleMaps.Android/MapRenderer.cs#L119 and it solves the problem.
from mapbox-android-binding.
Related Issues (20)
- Error on adding SDK to project HOT 2
- Can't upgrade to version 5.5.1.1 HOT 2
- Building extrusion HOT 4
- Instructions on how to create new version of mapbox sdk HOT 6
- Could you push new mapbox version to nuget, please HOT 2
- Offline mapbox? HOT 1
- App crashes - android.system.UnixSocketAddress cannot be cast to java.net.InetSocketAddress HOT 2
- Android offline HOT 1
- Merging offline region not available in Offline Manager HOT 1
- Update to latest version HOT 1
- Update Needed HOT 1
- lint.jar duplication
- Problem on android 5.1
- Permissionsmanger is gone since Update 9.0 HOT 1
- Java.Lang.SecurityException getDataNetworkTypeForSubscriber (Android 11) HOT 4
- Navigation SDK HOT 1
- Java.Lang.NoClassDefFoundError for com/mapbox/turf/TurfMeasurement. HOT 2
- Mapbox v10 HOT 3
- Any plans to update to last sdk version (5.2.0) in a near future? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-android-binding.