I am trying to implement sign in with apple with firebase. I cannot get around an issue where I get the following error when attempting a sign in:
When running:
Auth.auth().signIn(with: credential) { (authResult, error) in
I get:
nil credential = OAuthProvider.credential Optional(Error Domain=FIRAuthErrorDomain Code=17004 "The audience in ID Token [com.name.app] does not match the expected audience." UserInfo={NSLocalizedDescription=The audience in ID Token [com.name.app] does not match the expected audience., FIRAuthErrorUserInfoNameKey=ERROR_INVALID_CREDENTIAL})
Optional("The audience in ID Token [com.name.app] does not match the expected audience.")
I have added my URL as stated on firebase to my identifier.
To complete set up, add this authorization callback URL to your app configuration in the Apple Developer Console. Additional steps may be needed to verify ownership of this web domain to Apple.
More code:
func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
if let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential {
guard let nonce = currentNonce else {
fatalError("Invalid state: A login callback was received, but no login request was sent.")
}
guard let appleIDToken = appleIDCredential.identityToken else {
print("Unable to fetch identity token")
return
}
guard let idTokenString = String(data: appleIDToken, encoding: .utf8) else {
print("Unable to serialize token string from data: \(appleIDToken.debugDescription)")
return
}
print("credential = OAuthProvider.credential")
// Initialize a Firebase credential.
let credential = OAuthProvider.credential(withProviderID: "apple.com",
idToken: idTokenString,
rawNonce: nonce)
//Auth.auth().createUser(withEmail: T##String, password: T##String, completion: T##AuthDataResultCallback?##AuthDataResultCallback?##(AuthDataResult?, Error?) -> Void)
// Sign in with Firebase.
Auth.auth().signIn(with: credential) { (authResult, error) in
print(Auth.auth().currentUser?.uid ," credential = OAuthProvider.credential ", error)
Post
Replies
Boosts
Views
Activity
I am attempting to make universal linking work, I created a file with the proper name and added it to my website (firebase deployed it), but it does not show up properly when I go to the URL, and it is not passed on here. - https://search.developer.apple.com/appsearch-validation-tool
For more info: stackoverflow.com/questions/66927121/apple-app-site-association-json-not-showing-up
I have implemented my association like it is done here, but when I then go to check the JSON by doing: day21.co/apple-app-site-association.
This shows up:
{"applinks":{"apps":[],"details":[]}}
Rather than what I have in the file:
}
Here you can see the placement of the file, which I firebase deployed to hosting successfully. i.stack.imgur.com/tX5K2.png
What am I doing wrong?
Hi, I have an art app. On it, one user subscribes to another user for some $/month.
Does Apple's Auto-renewable Subscriptions work for this? Or must I use stripe?
I also asked this Reddit Q: rb.gy/tiyszl
I am new to the Apple Music API and MediaPlayer frameworks... I am simply trying to fetch songs from a search query, from Apple Music API, BUT, importantly, without the users need to have a Apple Music subscription.
I have seen countless apps (for example Coverstar) being able to search for Apple Music songs and play a preview without asking the users consent for their Apple Music or anything like that... (user does not need a Apple Music Subcription).
This is my current code:
let predicate = MPMediaPropertyPredicate(value: "1459938538", forProperty: MPMediaItemPropertyAlbumPersistentID) let iCloudPredicate = MPMediaPropertyPredicate(value: true, forProperty: MPMediaItemPropertyIsCloudItem) let query = MPMediaQuery.albums() query.filterPredicates = [predicate, iCloudPredicate] let mp = MPMusicPlayerController.applicationMusicPlayer mp.setQueue(with: query) mp.play()
This I have put for testing purposes simply in the ViewDidload of a viewController. The link from this code is for a web Apple Music Madonna album for example.. (from this question: Playing (non library) Apple Music content - request fails)
I have also consulted Apple's WWDC 2017 session on this with no avail... (https://developer.apple.com/videos/play/wwdc2017/502/)
So how do I do this? The answer in the question spoke of using web search Apple Music, but does not provide any explanation or further links...
Any help on this would be greatly appreciated! Thx!
In the info.plist of my archive under ApplicationProperties one finds ApplicationPath.
In there My file says:
Applications/name(Test).app
It should read: (so that I can actualy uplaod as apple does not allow "()")
Applications/name.app
How can I resolve this? the bundle ID and name are both name.
I am wondering if a comments section in my app must-have report functionality for individual comments.
So my app got Metadata Rejected, it then states:
"1. Does the app allow the user to download video content or photos?
Once you reply to this message in Resolution Center with the requested information, we can proceed with your review."
So I responded:
No, this app does not allow users to download any content. It only serves the purpose of uploading your own content.
This was yesterday, and I have gotten no response or change in status.... ??