error in flutter and my phone is not responding never - flutter

I using google map on my app, and upload the code to my phone,
the problem is sometimes when I enter and exit to the map quickly,
the phone is not responding never !!! also I can't turn the phone off!!!
the only solution is re-upload the code again, only this is the solution to make my phone work!!
I try to see the output from the android studio, and I see like that
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Neither user 10737 nor current process has android.permission.WAKE_LOCK., null)
I wish you understand and help me!

The error clearly says that the app doesn't have the permission to unlock the phone by itself.
You should add the permission in your code and request it from the user.
If you search it on the net, you will find that Google maps in flutter sometimes needs the permission WAKE_LOCK.
You should add it to your manifest.

Related

Getting Positioning Error in here sdk flutter initially

I'm using here sdk in my flutter application to get map features in my app. When I'm trying to get user's current location then initially for some time, it is showing me this error which is not a good impression for my application.
It is giving me this error until it finds the location which is represented as this indicator
I've added all the required permissions for that
but still its giving the location after some delays which is not what I want....
I guess its related to refresh token, which is internally managed by HERE SDK, I'm not able to explicitly add that token , I've provided the consent permission but the token thing is delaying its update, maybe I'm wrong.
These are some code snippets,,,,
This is a gist of navigation example -
https://gist.github.com/alemantrix-settyl/5bff0bb621dd53b8309605dba9613f0c
This is calculating the route and starting the navigation
enter image description here
To get more information about the code, visit this repo:
https://github.com/heremaps/here-sdk-examples/tree/master/examples/latest/navigate/flutter/navigation_app

Firebase sendPasswordResetEmail never completes

I'm trying to send a password reset email with firebase but it doesn't work. It doesn't throw any exceptions either. It just never completes, and I see no errors in the console. I tried debugging it and I saw that the parameter action code is null, is it supposed to be? All guides covering this don't add any action codesettings. I've tried signing out the user first but that doesn't seem to work. What to do?
This await firebaseAuth.sendPasswordResetEmail(email: currentEmail); is nested in a try-catch block that's all.
Console output:
W/System ( 757): Ignoring header X-Firebase-Locale because its value was null.
I/System.out( 757): isEmailSend:POST
I/System.out( 757): port:443
D/GraphicBuffer( 757): register, handle(0x8240d540) (w:720 h:1504 s:720 f:0x1 u:f02)
I/System.out( 757): Check isMmsSendPdu
I/System.out( 757): [OkHttp] sendRequest<<
This is all I see. The future just never completes.
Firstly i was stuck too in this while doing my first attempt.I realized i didn't activated resetpassword method on firebase console authetication.
After this i got same result because while trying with email doesn't exist on firebase console user panel that mail adress.
My suggestion check turn on password reset method on console and try it with exist email user. and be sure you don't try with null in email
all of that if doesn't work maybe it can be about the port settings.
And one more try change this
firebaseAuth.sendPasswordResetEmail(email: currentEmail)
to
firebaseAuth.sendPasswordResetEmail(currentEmail)
Please check if your emulator is connected to the internet. Sometimes the wifi is on but does not connected to the internet.
and also make sure you email/password sign-in method on firebase is enabled
and if that doesn't work then add this line: android:usesCleartextTraffic="true" to your android > app > src > main > AndroidMaifest.xml

Getting Error after integrating facebook sdk in windows phone 8

I Have integrated facebook sdk in my windows phone 8 app and used facebook controls after downloading from NuGet.
However when I navigate to that facebook page, I get a "TargetInvocationException" and goes to Application Unhandled method where the debugger breaks, and the app crashes.
This is the exception: "An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in System.Windows.ni.dll"
Do I need to do anything else after downloading refrences from NuGet?.
This exception is thrown by methods invoked through reflection, but without knowing more about you implementation it will be hard for anyone to help and advise.
Are you able to provide more information, in particular code snippets and details of the inner exception?

System.ArgumentOutOfRangeException error in Windows 8 Visual Studio?

I just downloaded a sample app for Windows 8 that should allow users to look through albums and upload pictures to facebook. When starting the app, I succeed in logging into my facebook, but right after logging in and displaying my profile picture, I get the following error:
"An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code
Additional information: Index was out of range. Must be non-negative and less than the size of the collection.
If there is a handler for this exception, the program may be safely continued."
The problem seems to occur at this line:
await GetUserProfilePicture();
The app is here: http://code.msdn.microsoft.com/Facebook-Photo-Albums-c9589b5a?SRC=VSIDE Would anybody be kind enough to download it and see what the problem is? You also need an App ID for it to function.
The error is on line 81, file FacebookInfoView.xaml.cs. When albuminfo list has no values i.e. count = 0 and if you call albuminfo[0], it's surely gonna throw System.ArgumentOutOfRangeException.

trying to create a new application but i receive error when verified using mobile code

i'm trying to create a new application, so it's required to enter the Mobile number.
but when I submit the country code and my mobile number, I keep getting the same error
"Sorry, we have already tried texting multiple codes and they all seem to have failed. Please click here to get help."
But the help page doesn't provide a solution for this error.
what can i do to solve this problem?