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

Cannot join beacon #189

Closed
Omegaviv opened this issue Mar 6, 2023 · 9 comments
Closed

Cannot join beacon #189

Omegaviv opened this issue Mar 6, 2023 · 9 comments

Comments

@Omegaviv
Copy link
Contributor

Omegaviv commented Mar 6, 2023

Currently when anyone tries to join a hike the app throughs an exception or breaks.

When the hike creator tries to join the app shuts down with following log

E/AndroidRuntime( 7614): java.lang.IncompatibleClassChangeError: Found interface com.google.android.gms.location.FusedLocationProviderClient, but class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient' appears in /data/app/~~iEClb5LwHsMs11IjqHfeog==/com.example.beacon-jLueS9h_PrJ7Px5Fr0_5NA==/base.apk)
E/AndroidRuntime( 7614): 	at com.lyokone.location.FlutterLocation.createLocationCallback(FlutterLocation.java:219)
E/AndroidRuntime( 7614): 	at com.lyokone.location.FlutterLocation.changeSettings(FlutterLocation.java:197)
E/AndroidRuntime( 7614): 	at com.lyokone.location.MethodCallHandlerImpl.onChangeSettings(MethodCallHandlerImpl.java:106)
E/AndroidRuntime( 7614): 	at com.lyokone.location.MethodCallHandlerImpl.onMethodCall(MethodCallHandlerImpl.java:40)
E/AndroidRuntime( 7614): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:262)
E/AndroidRuntime( 7614): 	at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/AndroidRuntime( 7614): 	at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/AndroidRuntime( 7614): 	at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/AndroidRuntime( 7614): 	at android.os.Handler.handleCallback(Handler.java:942)
E/AndroidRuntime( 7614): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7614): 	at android.os.Looper.loopOnce(Looper.java:240)
E/AndroidRuntime( 7614): 	at android.os.Looper.loop(Looper.java:351)
E/AndroidRuntime( 7614): 	at android.app.ActivityThread.main(ActivityThread.java:8364)
E/AndroidRuntime( 7614): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 7614): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
E/AndroidRuntime( 7614): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
I/Process ( 7614): Sending signal. PID: 7614 SIG: 9
Lost connection to device.
Failed to send request: {"jsonrpc":"2.0","id":"892","method":"getMemoryUsage","params":{"isolateId":"isolates/1006626711108963"}}

When a user other than the creator tries to join the hike it through the following exception, and the apps keeps loading

E/flutter ( 7614): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: NoSuchMethodError: The getter 'id' was called on null.
E/flutter ( 7614): Receiver: null
E/flutter ( 7614): Tried calling: id
E/flutter ( 7614): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5)
E/flutter ( 7614): #1      HikeScreenViewModel.dispose.<anonymous closure> (package:beacon/view_model/hike_screen_model.dart:406:50)
E/flutter ( 7614): <asynchronous suspension>
E/flutter ( 7614): 
@Omegaviv
Copy link
Contributor Author

Omegaviv commented Mar 6, 2023

I would like to work on this.

@ItsAdityaKSingh
Copy link
Collaborator

Have you setup the latest backend and run the app with the required env variables?

@Omegaviv
Copy link
Contributor Author

Yes I have

@Omegaviv
Copy link
Contributor Author

Maps are working, because when we click on at trek that is completed it shows the map properly

@Omegaviv
Copy link
Contributor Author

@ItsAdityaKSingh can you also check this if it is working for you?

@Omegaviv
Copy link
Contributor Author

HTTP_ENDPOINT=https://o3q4rk1pdi.execute-api.us-east-1.amazonaws.com/prod/ WEBSOCKET_ENDPOINT=wss://o3q4rk1pdi.execute-api.us-east-1.amazonaws.com/subscriptions

are these the end point you are using, if it's working for you?
can you share yours?

@ItsAdityaKSingh
Copy link
Collaborator

So you have hosted the backend online and using it for checking the app? Is the backend responding without any errors? You could also host it offline to check the app.

@Omegaviv
Copy link
Contributor Author

I have not hosted it myself, this backend is hosted by @canihavesomecoffee for testing purpose

@Omegaviv Omegaviv closed this as completed Apr 5, 2023
@Omegaviv
Copy link
Contributor Author

Omegaviv commented Apr 5, 2023

resolved at #206

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

2 participants