Post

Replies

Boosts

Views

Activity

Universal links not working?
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? ​
1
0
1.5k
Apr ’21
How do you do a search for Apple Music songs from non-library...?
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!
0
0
591
Oct ’20
The audience in ID Token [com.name.apop] does not match the expected audience.
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)
2
0
9.5k
Oct ’20
Metadata Rejected, I replied as requested, but no response and no change?
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.... ??
2
0
724
Aug ’20