N nikitaganco Member Licensed User Aug 18, 2020 #1 hello, I have experienced 2 problems: 1. when I try to build b4i-bridge app i've got the following error: " Provisioning profile "com-gng-simplerent-lt" has app ID "com.xxx.xxxxx.lt", which does not match the bundle ID "com.xxx.xxxxx.lt.bridge". (in target 'B4iProject' from project 'B4iProject') " 2. when I try to run on Simulator, when I click on Sign in with Aplle id button - I've got error in log window: " Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1000 "(null)" " please help!
hello, I have experienced 2 problems: 1. when I try to build b4i-bridge app i've got the following error: " Provisioning profile "com-gng-simplerent-lt" has app ID "com.xxx.xxxxx.lt", which does not match the bundle ID "com.xxx.xxxxx.lt.bridge". (in target 'B4iProject' from project 'B4iProject') " 2. when I try to run on Simulator, when I click on Sign in with Aplle id button - I've got error in log window: " Error Domain=com.apple.AuthenticationServices.AuthorizationError Code=1000 "(null)" " please help!
Erel B4X founder Staff member Licensed User Longtime User Aug 19, 2020 #2 You need to use a wildcard app id + provision profile when you build B4i-Bridge. Test it with a real device. Upvote 0
You need to use a wildcard app id + provision profile when you build B4i-Bridge. Test it with a real device.
N nikitaganco Member Licensed User Aug 19, 2020 #3 hello, Thank you, but when I use wildcard app id - I cant enable Sign In With Apple ID feature (see attachment) Attachments Untitled.png 53.4 KB · Views: 628 Upvote 0
hello, Thank you, but when I use wildcard app id - I cant enable Sign In With Apple ID feature (see attachment)
Erel B4X founder Staff member Licensed User Longtime User Aug 20, 2020 #4 The wildcard app id + provision is only needed when you build B4i-Bridge. I recommend you to create the default one with the following id: b4i.* This will make it simpler to run the examples. Use #ProvisionFile attribute when you need to switch to the non-wildcard provision profile. Upvote 0
The wildcard app id + provision is only needed when you build B4i-Bridge. I recommend you to create the default one with the following id: b4i.* This will make it simpler to run the examples. Use #ProvisionFile attribute when you need to switch to the non-wildcard provision profile.
N nikitaganco Member Licensed User Aug 20, 2020 #5 Thank you! it was confusing that I required to use different profiles for bridge and app. But now it's working. Upvote 0
Thank you! it was confusing that I required to use different profiles for bridge and app. But now it's working.
N nikitaganco Member Licensed User Aug 20, 2020 #6 hello again, please explain how I can determinate that user is still signed in? and is there Sign Out possibilities? Are users have something like unique ID that is stable for same user? Upvote 0
hello again, please explain how I can determinate that user is still signed in? and is there Sign Out possibilities? Are users have something like unique ID that is stable for same user?
Erel B4X founder Staff member Licensed User Longtime User Aug 21, 2020 #7 I recommend using Firebase: https://www.b4x.com/android/forum/threads/sign-in-with-apple-and-firebase.116280/ nikitaganco said: please explain how I can determinate that user is still signed in? Click to expand... The SignedIn event will be raised when the app starts. If I remember correctly you can log out from Firebase. Another option is to store the state yourself. Upvote 0
I recommend using Firebase: https://www.b4x.com/android/forum/threads/sign-in-with-apple-and-firebase.116280/ nikitaganco said: please explain how I can determinate that user is still signed in? Click to expand... The SignedIn event will be raised when the app starts. If I remember correctly you can log out from Firebase. Another option is to store the state yourself.
N nikitaganco Member Licensed User Aug 21, 2020 #8 Could you please explain more details about how to handle user session: 1. OK when user successfully signed-in I've got username and email, nothing more? maybe there is some unique ID that i can refer later? 2. where usually I can store login information for next program run? (where is the best place to store small local data like settings or user data?) 3. how can i check that user is still signed in? ( SignedIn event is rises in Main module? what kind of parameter this event pass to code? ) Upvote 0
Could you please explain more details about how to handle user session: 1. OK when user successfully signed-in I've got username and email, nothing more? maybe there is some unique ID that i can refer later? 2. where usually I can store login information for next program run? (where is the best place to store small local data like settings or user data?) 3. how can i check that user is still signed in? ( SignedIn event is rises in Main module? what kind of parameter this event pass to code? )
Erel B4X founder Staff member Licensed User Longtime User Aug 23, 2020 #9 If you use Firebase then you can access FirebaseUser.Uid. You can also signout by calling SignOutFromGoogle. Best place to store it is in XUI.DefaultFolder. Upvote 0
If you use Firebase then you can access FirebaseUser.Uid. You can also signout by calling SignOutFromGoogle. Best place to store it is in XUI.DefaultFolder.