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 7633909
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:01:13+00:00 2026-05-31T07:01:13+00:00

I have implemented ray’s awesome tutorials on apns, every thing is working fine, now

  • 0

I have implemented ray’s awesome tutorials on apns, every thing is working fine, now i have a requirement that the message of push notification will contain a web url, and i have to get that url, the format will be that first there will be a text message in the notification and at the end the url will come, for example, a sample notification message can be

“Hi, Every one Plz. check this video. http:\designers99.com\video\abc.mp3”

now the first text message can be different from this and its length can also be varied so i cant get the substring of url using string index, my requirement is to break that message and retrieve that url from it, plz. guide me in this thanx and regards Saad.

  • 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-05-31T07:01:15+00:00Added an answer on May 31, 2026 at 7:01 am

    As we know, the message dictionary contains key ‘alert’, also, you can have your server send the JSON based notification message adding more key like ‘url’, then you can handle it at

    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo{
    
    NSLog(@"userInfo:%@",[userInfo description]);
    NSLog(@"alert:%@",[[userInfo objectForKey:@"aps"] objectForKey:@"alert"]);
    NSLog(@"alert:%@",[[userInfo objectForKey:@"aps"] objectForKey:@"url"]);
    }
    

    However, notice that there are character length limit in the push notification and you can send shortened urls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have studied and implemented Ray wenderlich's awesome tutorials on apns, and i am
I have implemented ray wenderlich's tutorials on Apple push notification, now i want to
every one i have studied and implemented these tutorials of ray http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2 i
I have read ray's awsome tutorials on apns from there http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2 and i
I have read Ray Wenderlich's awesome tutorials on apple push-notifications from here and here
For background I have been working on an RPG based off Ray Wenderlich's tutorials.
I have implemented a simple linked list class and I would now like to
I have implemented a simple appmod that handle WebSockets and echo back the messages.
I have Implemented Ray wenderlich's these http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12 http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2 awesome tutorials on APNS. Every thing
I have implemented quartz scheduler in my application. And its working upto a certain

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.