Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8532527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:44:09+00:00 2026-06-11T09:44:09+00:00

The easiest way for me to explain this is to upload a test app,

  • 0

The easiest way for me to explain this is to upload a test app, so I’ve stripped out everything that is unecessary and uploaded a bare bones project to SendSpace.

http://www.sendspace.com/file/z86g0z

I’m writing an app that will receive custom URL’s from Mobile safari like “plasma://hello-world”. These are then processed by my app and it displays a notification on screen.

In the test app the main class is a singleton and there is a “test” button this demonstrates what should happen when you open it via a URL. You get the custom link shown in a label on the screen and a green notification label at the top which then fades away. During this process the Xcode console shows this …..

2012-09-05 21:53:29.719 PlasmaLinker[2866:f803] Link: plasma:Test+Link
2012-09-05 21:53:29.778 PlasmaLinker[2866:f803] Show Alert: Success - Link Received
2012-09-05 21:53:35.779 PlasmaLinker[2866:f803] Remove Alert

All works fine.

Now I launch it from Mobile Safari by entering “plasma://hello-world” I hit enter and Safari switches to my app, the console shows EXACTLY the same output (with what ever URL you launch it with), however I get nothing in the UI at all. The link isn’t placed in the text box, the notification is never shown.

What am I doing wrong? After its been launched with the URL you can again click the test button and see the UI elements change as desired. Its driving me nuts but I don’t know enough to be able to get it to work when launched by a URL. Can someone please shed some light on this?

Kind Regards

Plasma

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:44:10+00:00Added an answer on June 11, 2026 at 9:44 am

    Your singleton method that gets the PlasmaLinker_ViewController is returning a different instance to the one that is created by the storyboard and added to the main window.

    One example that works, (in your app delegate)

    - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
    
        NSString *link = [NSString stringWithFormat:@"%@",url];
        vc = (PlasmaLinker_ViewController*) self.window.rootViewController;
        [vc processLink:link];
    
        return YES;
    
    }
    

    Another option is to override the view controller’s -(id)initWithCoder:(NSCoder *)decoder and set your shared instance to self in that method.

    + (PlasmaLinker_ViewController *) sharedInstance
    {
        return _sharedInstance;
    }
    
    -(id)initWithCoder:(NSCoder *)decoder {
    
        NSLog(@"In initWithCoder!");
        if (!_sharedInstance) {
            if (self = [super initWithCoder:decoder]) {
                _sharedInstance = self;
            }
        }
        return _sharedInstance;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The easiest way to explain this will be to draw out the two tables
The easiest way to explain this problem is to show you some code: Public
this is prob pretty easy but if someone could explain the easiest way to
I think the easiest way to explain this is by example. I have a
What is the easiest way to upload a file with this: <input type=file name=clanlogo>
Easiest way to explain what I mean is with a code sample. This doesn't
The easiest way to explain my question may be with an example, so let
I think the easiest way to explain is simply linking to an example of
Not sure the best way to explain this but i'll give it a shot.
What's the easiest way to clear this form after refresh. The way I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.