Unable to retrieve device token on iOS app

We have use-case where we need to send push notification from our backend to buildfire application. And in order to do so, we would need device token on backend.

We tried to extract it using following function in custom plugin but we are getting its value as empty string. We tested this in TestFlight build.

buildfire.getContext(function (err, result) {
  console.log(result.deviceId)
}

We have uploaded firebase certificate to Buildfire and have also linked APNs to it.

If anyone can guide us with this, it will be a great help.



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation