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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:02:30+00:00 2026-05-26T20:02:30+00:00

I am sending push notifications from php job application to iphone. I am sending

  • 0

I am sending push notifications from php job application to iphone. I am sending push notifications regarding new jobs. Is this possible that when user click on the view of push notification pop up , then user redirect to the particular job in the device.

I mean I wanted to know can I send any custom data with push notification like jobId,something else….so that Iphone end Can retrieve and show the particular job ?

Thanks.

  • 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-26T20:02:31+00:00Added an answer on May 26, 2026 at 8:02 pm

    Regardless of the language and library you use, the push notification payload is a JSON payload:

    {
        "aps": {
             "badge": 10,
             "alert": "Hello world!",
             "sound": "cat.caf"
        }
    }
    

    The aps token is the Apple APN data. You can add custom data to your payload as well:

    {
        "aps": {
             "badge": 10,
             "alert": "Hello world!",
             "sound": "cat.caf"
        },
        "job_id": 1
    }
    

    When you receive the notification in the app, check for your param in the notification dictionary:

    - (void)handleBackgroundNotification:(NSDictionary *)notification
    {
        NSDictionary *aps = (NSDictionary *)[notification objectForKey:@"aps"];
        NSMutableString *alert = [NSMutableString stringWithString:@""];
        if ([aps objectForKey:@"alert"])
        {
            [alert appendString:(NSString *)[aps objectForKey:@"alert"]];
        }
        if ([notification objectForKey:@"job_id"])
        {
            // do something with job id
            int jobID = [[notification objectForKey:@"job_id"] intValue];
        }
    }
    

    Keep in mind that the total size of the payload is 256 bytes, and that includes, of course, your custom parameters. So you may have to (at risk of reducing readability) call your custom param “ji” instead of “job_id” to squeeze bytes.

    All of this is documented in the Local and Push Notification Programming Guide in the iOS documentation. Definitely would recommend a read because it’s more complex than it initially sounds (at least, that’s what I thought).

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

Sidebar

Related Questions

I am sending Push notification from PHP to iPhone. Connection was established successfully but
I have my iPhone Apple push notifications (APNS) working in php on my own
I have designed an application in which i am sending a push notification. That
Is it possible to update the badge number without sending the application a push
Is it possible to send image when sending a push notification to iphone/ipad device
I'm sending mail from my C# Application, using the SmtpClient. Works great, but I
I am trying to write a server side code for sending push notifications for
I've not yet implemented push notifications in my app. My understanding is that the
Sometimes my script, that sends push notifications crashes with error: Warning: stream_socket_client() [function.stream-socket-client]: SSL
Is Apple push notification architecture setup for sending very high volume (dozens of notifications

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.