Tags down


soundcloud API login opens itunes app on IOS 6 device !

By : user3436631
Date : April 29 2020, 07:13 AM

I Have implement SoundCloud API into my  app.

All working well, and I'm using the SoundCloud IOS Quick guide.

- (IBAction) login:(id) sender
    SCLoginViewControllerCompletionHandler handler = ^(NSError *error) {
    if (SC_CANCELED(error)) {
    } else if (error) {
        NSLog(@"Error: %@", [error localizedDescription]);
    } else {

[SCSoundCloud requestAccessWithPreparedAuthorizationURLHandler:^(NSURL *preparedURL) {
    SCLoginViewController *loginViewController;

    loginViewController = [SCLoginViewController
    [self presentModalViewController:loginViewController animated:YES];

so, when I test it  on device iPhone IOS 6.0 - and try to login in - the SoundCloud screen appears, I add my details, but when I click connect [to SoundCloud], the iTunes player opens and my app closes. (Which is annoying) I can reopen my app and am logged into SoundCloud. Why would iTunes open? When I'm logging into SoundCloud?

thanks in advance

Answer :

What do you define as your URL-Scheme in YourApplication-Info.plist?

Please note that it needs to match what you have assigned as the Redirect URI param at https://soundcloud.com/you/apps/.

For more information about custom URL schemes check Apple's documentation

Register Custom URL Schemes for your app :

"To register a URL type for your app, include the CFBundleURLTypes key in your app’s Info.plist file. The CFBundleURLTypes key contains an array of dictionaries, each of which defines a URL scheme the app supports. "

Let me know if this solves your issue or not .

Share : facebook icon twitter icon
Related Posts Related Posts :
  • clear array after form submit
  • pass url variable to javascript
  • access data using api
  • div position fixed css
  • add horizontal line between two div
  • disable toggle button css
  • css fixed line height
  • background image not working
  • table cell border
  • text line break css
  • overlay div on div
  • text direction rtl css
  • javascript convert string to an object
  • bind inner div click to outer div
  • jquery ajax oncomplete
  • how to use promise in for loop
  • jquery get element using variable
  • javascript send textbox value
  • pass div class content to another class or id
  • css new line after element
  • css calc not working properly
  • link disabled jquery
  • sql join table to subquery
  • MS Access SQL Issue with OR AND Operators
  • set textarea value using php
  • php merge two arrays into one
  • php form with google captcha
  • update current row in php
  • php date format mysql
  • mysql pdo select query
  • php function return an array
  • PHP mysqldump database to sql file
  • display image query
  • php create array using foreach loop
  • associative array php
  • group_concat in mysql laravel
  • php array_push empty
  • mysql on update cascade not working
  • pdo insert prepared statement
  • mysql insert ignore vs on duplicate key
  • mysql insert into existing row
  • mysql multi insert query
  • mysql group by show all rows
  • php change profile image
  • combine multiple arrays into one array php
  • how to sum values in an array
  • how to get sum of the total time
  • How to Create Facebook live stream without notification using API ?
  • on button click make div visible
  • css affect another element on hover
  • shadow
    Privacy Policy - Terms - Contact Us © bighow.org