Meteor-Community-Packages / Meteor-Community-Packages/raix-push

No notification in app hosted on my server in distribution mode

Open
#337 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
505
Forks
191
PR merge metrics
No merged PRs in 30d

Description

Hi All,

We have created an enterpise ios app and generated an .ipa with distribution or production ready certificate and hosted it on my own https based server.
App is not on the app store but can be downloaded from my own website.
I am able to download install and run the app. I have set following configurations:

Push.Configure({
gcm: {
// apikey from FirebaseCM
//
apiKey: 'Xxxxxxxxxxxx',
projectNumber: xxxxxxxxx // senderId from FirebaseCM
},
'sendInterval':300,
'sendBatchSize':50,
apn: { // iOS
certData: Assets.getText('alert-push-cert-prod.pem'),
keyData: Assets.getText('alert-push-key-prod.pem'),
passphrase: 'xxxx',
production: true,
gateway: 'gateway.push.apple.com',
},
});

The issue is that if i run app(with distributin certi.) using
meteor run ios-device --mobile-server server-url
then i am able to receive push notifications in ios device

But if i generate/export .ipa and host on my own server then install from it and after that i run it but no notification is received.

Also in device registration methods logs we found following error:
**ios no valid 'aps-environment' entitlement string found for application**

Can you suggest me solutions ??

Thanks ..

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Push.Configure APN settings in the issue, then compare the working meteor run ios-device build with the exported .ipa installed from the server. Investigate the reported "aps-environment" entitlement error and verify that the hosted distribution build can register for push notifications and receive them.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.