Unable to create platform iOS using phongap push plugin

Yeah, we only get notifications to apps registered with developers.apple.com because of .p12 certificates.

True, but I received just tested rite now. as I sent message using segment.(appid) and it delivered.

I am not using .p12 as .p8 is better way of authentication

Also one thing more in some devices I see null in alert where I put the registered token on app open.
But devices received the notification.

@ravi_sojitra

I have moved with Http request for FCM

I made put request, but in response I get the following issue


    {
        "multicast_id": 8284387918682885000,
        "success": 0,
        "failure": 1,
        "canonical_ids": 0,
        "results":
        [
            {
                "error": "InvalidRegistration"
            }
        ]
    }

Request body

{
	"notification": {
		"title": "Notification title",
		"body": "Notification body"
	},
	"data": {
		"message": "Some message data to help render the content when received."
	},
	"to": "generatedtoken",
	"priority": "high"
}

Also is there any way or the end point by which I can get all the registred token to FCM for my project?

Thanks

Invalid Registration ID Check the formatting of the registration ID that you pass to the server.
I think you are sending APN ID instead of GCM ID.

Make sure you are sending GCM ID which looks similar to XXXXXXXXX:YYYYYYYYYYYYYY…

@ravi_sojitra Can you tell me that if there is any end point (GET request) available by which I can get all the devices registered tokens?

Thanks

There is currently no API to retrieve all the Registration tokens for your app from the Server side. It’s the developer’s (you) responsibility to send and store the Registration token to your App Server, which is generated from the Client App side.

Below worked for me on windows 10.

Problem: “You cannot run CocoaPods as root.”
Solution: https://stackoverflow.com/a/37451422/3368558

After following steps mentioned in above link, I got below issue.

Problem: "Unable to locate the executable git"
Solution: https://stackoverflow.com/a/53204534/5492926