Why use .pem certificate in apple push notification not p12 - php

I am creating a web portal using laravel framework to which one of its functionality is to send remote push notification on IOS App remotely. Many article in the internet is saying that we need the pem certificate file not p12. Why?
My co-worker who is developing the IOS mobile app, says that he is using the p12 certificate to get the push notifications from the Azure portal and successfully send push notification.
Is this because that he is pushing the app locally? Meaning the app directly sends the notification? And I am pushing notifications remotely from the web portal? Is there any difference when pushing the app remotely and locally?

Seems you are using Azure Notification Hubs. In Azure's official tutorial, they are obviously using the .p12 push certificate to configure authentication. So I think you don't need to worry to use it.

Related

Firebase app server in php without NPM (Node.js)

I am using firebase database for my chat app and now i want to send notification to my app from my server (Without firebase console). So i want to send notification whenever firebase database triggers with related data, As i know so far(May be i am wrong.Please correct me) if i want to listen realtime database trigger i need to use firebase functions and on App server i need to install NPM commend line tool to listen firebase database trigger on app server which later made post request to FCM server for notification.
So, My issue is my server doesn't support NPM and node.js so i can't install and listen change on firebase database from app server. i during my research i came to know few php sdk which send notification but none listen change in firebase database on app server.
Is there any other way around (PHP) which can help me to listen change in firebase database and by this i can make request to FCM server for notifications.
Regards
Ritu

Web Service betweet two machines run on local

I'm working an a Web/Mobile Application.
Desktop is made with Laravel 5.1 and Oracle 11g express Edition.
Mobile is made on Android.
I'm using two computers, both of them are on local (Android and PHP).
All works fine on the desktop application.
Now it's time to connect my Android App to the database, to do so, i have to implement a Web Service.
How can i get the URL of the web service and use it on the other machine for android?
How can i test my webservice ?
For trying Web Service locally,
Both your device needs to be in the same network.
The API calls will be like: <YOUR.IP.ADDRS>/PATH in you Android App Source Code.
You can even use Postman REST Client, to test your app.
See, if that helps.

Send push messagefrom PHP server on localhost to client on android

We are facing issue with push notification kind of feature in intranet.
we have PHP web server on localhost and client on android application.
We want to keep all devices updated even if there is update form any device.
here we can update server from client using web service but what about server to client notification.
We are using intranet only not internet so is there any push notification facility for such scenario. Because server needs to send update on all android devices if there is any change

Testing PHP Web Service locally by using android app

I am new to web services and planning to design a php webservice for my android app on my local machine which will send some user informations to database and generate some JSON data. But the problem is i am little confused about how to test it.
For example lets say that my webservice will locate on my local machine like below http://localhost:80/webservice/register.php
And my ip address is 192.168.1.X
Than is it possible for my android app to use this web service by using this url http://192.168.1.X:80/webservice/register.php
Normally since webservices are on the internet any program can access them. But i thought that i can test my webservice with my android app since both my pc and android device are on the same subnet.
If someone make things clear and tell me a way for testing a web service locally i appreciated
This is possible to call the web service in the local network also from the android app. But Your device and Your server on which Web Service running must have on the same network and Your firewall or any proxy server must be off on the server.

pushnotification not working when server changes

I was developing an application with push notification enabled. It is working perfectly in the local server (company server - PHP), but when I change the server to the client server, the push notification is not working.
I used both the development and distribution profile with push notification enabled.
Please help me to overcome this situation.
Are still using a Development Certificate when your client has a Ad Hoc (or App Store) provisioned App?
If your client has the App provisioned / signed for Ad Hoc (or App Store) then you need to use the Production certificate to send Push Notifications via the APNS. You also need to make sure you connect to the Apple's production server, and not the sandbox alternative.
It seems a little odd that Ad Hoc has to use the production versions of Certificate and Push Notification server, but that's how it is.

Categories