firebase-authentication

laravel fcm push notification with brozot/Laravel-FCM not working on ios but working fine with android

∥☆過路亽.° 提交于 2019-12-05 18:16:56
Even ios can get notification from fcm console. Controller function : public function push(Request $request) { $validator = Validator::make($request->all(), [ 'title' = > 'required', 'body' = > 'required', 'token' = > 'required', 'type' = > 'required', 'id' = > 'required', ]); if ($validator->fails()) { $this->throwValidationException( $request, $validator ); } $title = $request['title']; $body = $request['body']; $type = $request['type']; $id = $request['id']; $dataarray = array( "id" = >$id, "type" = >$type, 'title' = >$title, 'body' = >$body, 'image' = >'321451_v2.jpg', ); $token = $request

How to validate an authentication token against firebase?

只谈情不闲聊 提交于 2019-12-05 17:36:13
I don't mean custom authentication with firebase. What I need is slightly different from that custom authentication that generates tokens in application server and allows access in firebase. Actually, I'm trying to authenticate in firebase with e-mail and password , for instance, and with that authentication be able to access restful services in some application server. Is this possible ? I think that in some way an token could be sent to application server after firebase authentication and that server would validate the auth token against firebase. Client --------authenticates ------->>

Firebase SMS Verification on iOS - 'Token Mismatch'

亡梦爱人 提交于 2019-12-05 17:22:15
When attempting to beta test my application with some external users, none of them could properly enter the app using the phone number sms verification. The developers could all use the application when built directly from Xcode, but anyone who installed via a link could not use it. Each user attempting to sign in / sign up would get an error readout of Token Mismatch - with no other info. I have a valid production APNS certificate, why is this not working?? Steps I took to solve the problem: Ensure I had both a valid development and production APNS certificate uploaded to the Firebase

Firebase Auth and Vue-router

家住魔仙堡 提交于 2019-12-05 16:57:49
问题 I'm trying to authenticate a Vue.js app using firebase. I have an issue where if trying to access a login-protected URL directly while logged in, the router will load and check for auth state before firebase.js has time to return the auth response. This results in the user being bounced to the login page (while they are already logged in). How do I delay vue-router navigation until auth state has been retrieved from firebase? I can see that firebase stores the auth data in localStorage, would

NoClassDefFoundError: com.google.firebase.FirebaseOptions

情到浓时终转凉″ 提交于 2019-12-05 16:53:25
问题 I keep on getting the NoClassDefFoundError on other test device (4.4.2) that I'm using. But works fine on my test device (Android 5.1). I tried the solutions that I've googled and nothing seems to work. I'm using Firebase Realtime Database. Can somebody please help? Here is the error log: 06-03 01:36:29.607 2655-2655/mobapps.mypersonal.biz.grouptracker E/dalvikvm: Could not find class 'com.google.firebase.FirebaseOptions', referenced from method com.google.firebase.FirebaseApp.<init> 06-03 01

Disable many users at once

十年热恋 提交于 2019-12-05 16:33:41
We are using Firebase Authentication in a multitenant setup. Under certain circumstances, we want to disable all users for one tenant (trial ended, subscription not renewed ...) or enable all previously disabled users. We send an UpdateRequest for every user that has to be enabled/disabled. Although we send the requests sequentially (only one at a time per tenant and not many tenants are disabled at the same time), we have encountered a quota exceeded error several times: { "error": { "errors": [ { "domain": "global", "reason": "invalid", "message": "QUOTA_EXCEEDED : Exceeded quota for

How to get SHA-1 key in Android Studio 2.3.1?

早过忘川 提交于 2019-12-05 16:22:07
When I try gradle(Right corner): My_project: app: click on tasks: android: signingReport it doesn't give me any key or anything expected. I am not able to get SHA-1 key in Android Studio 2.3.1. I get this: Run build 761ms Run init scripts 23ms Configure settings 1ms Configure build 343ms Project : 343ms Resolve dependencies :classpath 331ms Calculate task graph 355ms Project :app 352ms Resolve dependencies :app:classpath 0ms Resolve dependencies :app:_debugApk 78ms Resolve dependencies :app:_debugCompile 12ms Resolve dependencies :app:_releaseApk 14ms Resolve dependencies :app:_releaseCompile

Firebase Auth crashing on API 15 and 16 with NullPointerException from call to FirebaseAuth.signInAnonymously()

六月ゝ 毕业季﹏ 提交于 2019-12-05 15:47:57
Per the Firebase support page, I'm posting here before filing an official bug. Hopefully somebody from the Firebase team can help. My Android App uses Firebase anonymous authentication. I've been doing some testing on older Android versions using the emulator and consistently get the following exception on API 15 and 16 (so far...still more testing to do): Caused by: java.lang.NullPointerException at com.google.android.gms.internal.zzdtp.zzb(Unknown Source) at com.google.android.gms.internal.zzdtw.zza(Unknown Source) at com.google.firebase.auth.FirebaseAuth.signInAnonymously(Unknown Source)

Dealing with Email address already in use - Firebase Authentication

夙愿已清 提交于 2019-12-05 15:29:24
My app has gmail and facebook authentication integrated through Firebase. I noticed if someone signs up with their gmail then signs up with Facebook, if the Facebook had the same email as their gmail then they'll get the error: "The email address is already in use by another account." Is the only reasonable way to handle this to tell the user to sign in with different credentials? Maybe show a message like "Email already in use, please sign up with different account"? There are 3 ways in which you can handle this problem. The first one is to verify if the email address exists and than display

Flutter: Platform Exception upon cancelling Google Sign In flow

青春壹個敷衍的年華 提交于 2019-12-05 14:28:19
This is my pubspec.yaml. I'm using Flutter: dependencies: flutter: sdk: flutter cupertino_icons: ^0.1.2 http: ^0.11.3 #Google Sign In google_sign_in: 3.0.3 firebase_auth: ^0.5.18 flutter_svg: ^0.5.0 I can authenticate fine, the Sign In structure works, however if I'm at the Google Sign In and I cancel Google's authentication flow by hitting the back button on my physical device (S7 Edge), the application locks up and returns this: Exception has occurred. PlatformException(sign_in_failed, Status{statusCode=ERROR, resolution=null}, null) Here is the log of the situation. It seems to me as if it