Posts

Post marked as solved
2 Replies
8k Views
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)
Posted
by Ramblo.
Last updated
.
Post marked as solved
1 Replies
1.3k Views
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? ​
Posted
by Ramblo.
Last updated
.
Post not yet marked as solved
0 Replies
515 Views
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!
Posted
by Ramblo.
Last updated
.
Post not yet marked as solved
1 Replies
714 Views
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.
Posted
by Ramblo.
Last updated
.
Post not yet marked as solved
2 Replies
597 Views
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.... ??
Posted
by Ramblo.
Last updated
.
Post not yet marked as solved
0 Replies
434 Views
I have a iPhone 7 plus. When I run my app on my phone the UI looks correct (How it looks on iphone 7 or any non-plus model) But when I run my app on the simulator for 7 plus the apps UI is all wrong, making me think that I need to introduce auto layout. But how can I know if this really is what my users are seeing when on my physical device the app looks fine?
Posted
by Ramblo.
Last updated
.
Post marked as solved
4 Replies
969 Views
I am wondering if it is possible for me to launch 2 versions of my app. So that users downloading it would have a 50% chance of getting one or another version. For example, one would have one sort of camera and the other would have another kind (To compare the performance of app with one of the two cam layouts)
Posted
by Ramblo.
Last updated
.