Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j3k0/phonegap-newsstand-ios
Newsstand Integration for PhoneGap / Cordova iOS Apps
https://github.com/j3k0/phonegap-newsstand-ios
Last synced: 22 days ago
JSON representation
Newsstand Integration for PhoneGap / Cordova iOS Apps
- Host: GitHub
- URL: https://github.com/j3k0/phonegap-newsstand-ios
- Owner: j3k0
- Created: 2014-04-03T09:47:40.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-25T17:25:29.000Z (over 10 years ago)
- Last Synced: 2024-04-08T00:24:14.281Z (7 months ago)
- Language: Objective-C
- Size: 199 KB
- Stars: 7
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PhoneGap-Newsstand-iOS
======================This plugin can be used to configure a PhoneGap application as a Newstand application, then change the cover icon to reflect the latest issue.
Installation
------------To install from **command line**:
cordova plugin add https://github.com/j3k0/PhoneGap-Newsstand-iOS.git
or:
phonegap local plugin add https://github.com/j3k0/PhoneGap-Newsstand-iOS.git
Documentation
-------------Tutorial here: http://fovea.cc/blog/index.php/tutorial-for-phonegap-newsstand-applications/
This is code as documentation... I'll do better later.
document.addEventListener('deviceready', function () {
var iconURL = 'http://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Art-Journal_cover_1858.jpg/220px-Art-Journal_cover_1858.jpg';
newsstand.init({
debug: true,
success: function () {
console.log('newsstand success');
newsstand.setIcon({
url: iconURL,
badge: 0,
success: function () {
console.log('setIcon success');
},
error: function () {
console.log('setIcon error');
}
});
},
error: function () {
console.log('newsstand error');
}
});
}, true);