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

  • Home
  • SEARCH
  • 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 8074779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:46:02+00:00 2026-06-05T14:46:02+00:00

I am doing Push Notification Service for Apple iphone/ipad. i got the server side

  • 0

I am doing Push Notification Service for Apple iphone/ipad. i got the server side code from http://code.google.com/p/apns-php/. it is working well.. but i have to implement it in Yii framework.

i have googled it. and got this
https://github.com/shiki/yii-apns

Here i need to set server_certificates_bundle_sandbox.pem, and device token dynamically at run time.I am new to yii..please help me how to use this component..

i have extracted all the files in components folder,and tried the below code.

    $obj=new SAPNS();
    $obj->providerCertificateFilePath="provider certificate file path";
    $obj->rootCertificationAuthorityFilePath="root certificate path";
    $obj1=$obj->getPushProvider();

but while calling getPushProvider method,i got the following error.

include(ApnsPHP_Push.php): failed to open stream: No such file or directory

There is no such a file ApnsPHP_Push.php in ApnsPHP folder in my components folder.dont know in which part i did mistake..

  • 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-05T14:46:03+00:00Added an answer on June 5, 2026 at 2:46 pm

    the guys has already wrapped up everything in a component, so you just need to put all the things in components directory and call the desired functions.

    if you look at SAPNS.php its got a public property

    $providerCertificateFilePath
    

    and that will be the file path to your PEM file and other

    $rootCertificationAuthorityFilePath
    

    for secure certificate (if any).

    After giving these values you have to call getPushProvider method that will give you an object for ApnsPHP_Push from here you can call this class normally as you do without framework.

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

Sidebar

Related Questions

i use APNS Sharp library for my apple push notification. i have downloded from
this is my code for apple push notification, when the application is running and
I am starting to look for the Apple Push Notification Service . I have
I got my url from the app. It begins with: http://sn1.notify.live.net/throttledthirdparty/01.00/ and if I
I am doing push notification for android using C2DM. it works well. but while
Is there a push notification plugin/approach for phonegap (android/iphone) where: the application can still
I'm implementing a push notification server with GCM. I send a post request with
I tried doing var div = document.createElement('div'); var nodeList = new query.NodeList(); nodeList.push(div); nodeList.children(.someClass);
Doing an ajax get request works as expected using the following code: $.ajax({ type:
Doing code analysis of the project and get the message Reference-counted object is used

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.