pushwoosh / pushwoosh-phonegap-cordova-sample Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I have tried using the phonegap directory project, i changed the Pushwoosh ID and the Google ID to my own, but it still doesn't work?
It won't even build on phonegap's website either. Please assist or update the Phonegap folder to current releases.
The link for documentation is no longer available (https://rawgit.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin/master/Documentation/files/PushNotification-js.html)
I am using phonegap serve command and the phonegap developer app. It just says "connecting to device" and after checking console it just stops on this line:
var pushNotification = cordova.require("pushwoosh-cordova-plugin.PushNotification");
phonegap plugin list
cordova-plugin-console 1.1.0 "Console"
pushwoosh-cordova-plugin 7.2.3 "Pushwoosh"
Really want to get this working can anyone help? Thanks Tim
2017-12-25 21:23:54.662628+0100 pushwoosh-ionic-sample[5945:1230484] NSURLConnection finished with error - code -1100
Message from debugger: Terminated due to signal 9
Absence of pushwoosh cfg in config.xml is propabaly they cause
These configurations in the Phonegap sample do not match what is on the Pushwoosh website. I am a paying customer having difficulties getting Pushwoosh to work correctly. What is the correct js to use? I am also never able to get a test push to work. It is why I purchased in the first place.
if (device.platform == "Android") {
registerPushwooshAndroid();
}
if (device.platform == "iPhone" || device.platform == "iOS") {
registerPushwooshIOS();
}
if (device.platform == "Win32NT") {
registerPushwooshWP();
}
rawgit file has this
pushwoosh.onDeviceReady({ projectid: "XXXXXXXXXXXXXXX", pw_appid : "XXXXX-XXXXX" });
which also isn't in the code on pushwoosh site
lolmac:Ionic jqrgen$ ionic cordova platform add ios
> ionic integrations enable cordova
✔ Downloading integration cordova - done!
? The config.xml file exists in project. Overwrite? No
? The resources/ directory exists in project. Overwrite? No
✔ Copying integrations files to project - done!
[OK] Added cordova integration!
> cordova platform add ios --save
Using cordova-fetch for cordova-ios@~4.5.1
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: com.pushwoosh.demoapp
Name: pushwoosh-ionic-sample
iOS project created with cordova-ios@4.5.4
Running command: /Users/jqrgen/pushwoosh-phonegap-cordova-sample/Ionic/hooks/after_prepare/010_add_platform_class.js /Users/jqrgen/pushwoosh-phonegap-cordova-sample/Ionic
add to body class: platform-ios
--save flag or autosave detected
Saving ios@~4.5.4 into config.xml file ...
> ionic cordova resources ios --force
✔ Collecting resource configuration and source images - done!
✔ Filtering out image resources that do not need regeneration - done!
✔ Uploading source images to prepare for transformations - done!
✖ Generating platform resources: 2 / 32 complete - failed!
Error: encountered bad status code (400) for https://res.ionic.io/api/v1/transform
body: {"Error":"source image 2208x2208 too small for Default-Landscape@~ipadpro.png, requires at least 2732x2048 source file"}
at Response.res.on (/Users/jqrgen/.nvm/versions/node/v8.9.3/lib/node_modules/ionic/node_modules/@ionic/cli-utils/lib/cordova/resources.js:150:32)
Hi
I was trying to build this XDK sample. However I get this error. Am I missing anything?
ERROR (-7) from "client:upload-manager": Error in zipping package asset files: : File not found: /Library/WebServer/Apps/Intel-XDK/www/Universal_In_House.mobileprovision Error at new ComponentError (/Applications/Intel XDK.app/Contents/Resources/app.nw/core-modules/public/component-error.js:17:1122) at makeError (file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/components/client/upload-manager/upload-manager.js:17:170) at getComponentError (file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/components/client/upload-manager/upload-manager.js:17:265) at file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/components/client/upload-manager/upload-manager.js:17:21767 at _rejected (file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/node_modules/q/q.js:844:24) at file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/node_modules/q/q.js:870:30 at Promise.when (file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/node_modules/q/q.js:1122:31) at Promise.promise.promiseDispatch (file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/node_modules/q/q.js:788:41) at file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/node_modules/q/q.js:604:44 at runSingle (file:///Applications/Intel%20XDK.app/Contents/Resources/app.nw/node_modules/q/q.js:137:13)
Hey, thanks for putting this up! I was hoping to get better insight into how to setup Pushswoosh for Ionic, as the API documentation is pretty scarce, but it's pretty difficult for somebody new to the platform to understand what's going on here.
What is PushwooshWP.js for? WordPress?
Update: I see now that it's for Win32NT? I
Also, why isn't there an .onDeviceReady where I register my app_id for iOS?
Update: I also see that this is further down in the function. For some reason my page search didn't return this the first time I looked.
All the same, a readme would be helpful :)
Thanks!
Hi
Would be very happy if you can give a simple sample Framework7 script as right now I'm desperately write codes in Framework7 with no luck
Thank you very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.