Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Problem to build iOS on phonegap build missing SENDER_ID #1164

Closed
zubus opened this issue Aug 18, 2016 · 5 comments
Closed

Problem to build iOS on phonegap build missing SENDER_ID #1164

zubus opened this issue Aug 18, 2016 · 5 comments
Assignees

Comments

@zubus
Copy link

zubus commented Aug 18, 2016

Hello, I can't build my iOS project on phonegap build, this is the log of error:

Fetching plugin "cordova-plugin-statusbar@~2.1.3" via npm
Installing "cordova-plugin-statusbar" at "2.1.3" for ios
"plugman install --platform ios --project /project --plugin phonegap-plugin-push@~1.8.0": Fetching plugin "phonegap-plugin-push@~1.8.0" via npm
Installing "phonegap-plugin-push" at "1.8.1" for ios
Failed to install 'phonegap-plugin-push':Error: Variable(s) missing: SENDER_ID
at /usr/local/lib/node_modules/pgb-plugman/node_modules/pgb-cordova-lib/src/plugman/install.js:362:23
at _fulfilled (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:557:44
at flush (/usr/local/lib/node_modules/pgb-plugman/node_modules/q/q.js:108:17)
at doNTCallback0 (node.js:417:9)
at process._tickCallback (node.js:346:13)
Variable(s) missing: SENDER_ID

@macdonst
Copy link
Member

@zubus did you follow the instructions to include the plugin in PGB?

https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PHONEGAP_BUILD.md#including-the-plugin

@zubus
Copy link
Author

zubus commented Aug 18, 2016

@macdonst I have this on confix.xml:

<plugin name="phonegap-plugin-push" source="npm"> <variable name="SENDER_ID" value="123456789" /> </plugin>

My project is only iOS, using as a base the push template (it work fine with de phonegap APP) and delete all Android parts.

*Excuse my English

@ef33zy
Copy link

ef33zy commented Aug 18, 2016

@zubus Try using param instead of variable as described in the link @macdonst sent above. This was corrected #686

<plugin name="phonegap-plugin-push" source="npm"> 
        <param name="SENDER_ID" value="123456789" /> 
</plugin>

@macdonst macdonst self-assigned this Sep 8, 2016
@macdonst macdonst closed this as completed Sep 8, 2016
@wildabeast
Copy link
Collaborator

FYI variable should be working on PhoneGap Build again now, interchangeable with param.

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants