Posts

Showing posts from 2015

iOS Phonegap app share extension (images) with ionic

Image
iOS Phonegap app share extension (images) with ionic Share extensions give users a convenient way to share content with other entities, such as social sharing websites or upload services. For example, in an app that includes a Share button, users can choose a Share extension that represents a social sharing website and then use it to post a comment or other content.    Link            In iOS Share extension create new share project in existing project.                                    1) Create and add share extension project on your app. File >>New >>Target ...>>Application Extension >>Share Extension >>Next (Click on).          2) Add share Project Details : product name ,Organization identifier ...etc .. >> finish.                            3) Replace : ShareViewController.h and ShareViewController.m file.              4) Add Content Handle Plugin files on share project         

Pushy Me Notification Service With Phonegap Android

Image
                        Pushy   ( https://pushy.me/ ) provides reliable Push Notifications. About Pushy:  You need an alternative to GCM, Pushy me best way to implement notification service. Pushy is a push notification gateway, completely independent of GCM. It maintains own background socket connection, Like:  GCM, to receive push notifications. Light-weight protocol, utilizing very low network bandwidth and battery. It will be perfect for developed case since it does not depend on Google Play Services. Implement cross platform (Cordova/Phonegap) 1) Setup Account:          On Pushyme (https://pushy.me/) create your account and get API Secret Key for server .             Like:  App Name,  Package Name                   2) Download the Pushy SDK file:                                Copy the pushy-x . x . x . jar to your Android project's libs/ folder.             3) Add Pushy Permissions to AndroidManifest.xml:  < uses - permission android : n

Easy to change status bar text color in Phonegap iOS App

Image
For iOS App : Change Status Bar text color  Step 1 :-                  Change View controller-based status bar appearance Setting in info.plist file.         if you want to change text color add NO.                                        UIViewControllerBasedStatusBarAppearance  to  NO                                else set Yes                                       UIViewControllerBasedStatusBarAppearance  to  YES  Step 2 :- Apply code in javascript and Objective c Change Main view Controller back ground color and apply status bar style based on requirement . Create .m & .h file for native plugin.  DemoStatusBar .h    #import <Foundation/Foundation.h>  #import <Cordova/CDV.h>  #import <CORDOVA/CDVPlugin.h> @interface  DemoStatusBar : CDVPlugin    -( void )setStatusBarColor:( CDVInvokedUrlCommand *)command;    -( UIColor *)colorWithHexString:( NSString *)hex; @end DemoStatusBar .m #import "