Book Image

Lean Mobile App Development

By : Mike van Drongelen, Aravind Krishnaswamy
Book Image

Lean Mobile App Development

By: Mike van Drongelen, Aravind Krishnaswamy

Overview of this book

Lean is the ultimate methodology for creating a startup that succeeds. Sounds great from a theoretical point of view, but what does that mean for you as an a technical co-founder or mobile developer? By applying the Lean Start-up methodology to your mobile App development, it will become so much easier to build apps that take Google Play or the App Store by storm. This book shows you how to bring together smarter business processes with technical know-how. It makes no sense to develop a brilliant app for six months or longer only to find out later that nobody is interested in it. Build a Minimum Viable Product (MVP) first. Validate your hypotheses early and often. Discover effective product development strategies that let you put Facebook's famous axiom "move fast and break things" into practice. A great app without visibility and marketing clout is nothing, so use this book to market your app, making use of effective metrics that help you track and iterate all aspects of project performance.
Table of Contents (22 chapters)

Handling an incoming notification

If a notification comes in, it will be shown in the Messenger section, something that the OS will provide for us. In addition, we can define what to do with it. In Android, we can implement a PushHandler class that consumes the notification and defines specific actions for it using the NotificationCompat builder. Here is an Android Java example:

public class PushHandler extends NotificationsHandler { 
 
    Context ctx; 
 
    @Override 
    public void onReceive(Context context, Bundle bundle) { 
        ctx = context; 
        String nhMessage = bundle.getString("message"); 
        Parcelable parselableObject = bundle.getParcelable("parcel");            
       consumeNotification(nhMessage,parselableObject); 
    } 
 
    private void consumeNotification(String msg, Parcelable parselableObject) { 
 
        Log.i(this.getClass...