Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
de-push-proxy-plugin / src / android / DEGCMIntentService.java
Size: Mime:
package com.vipera.pushproxy;

import android.os.Bundle;

import java.util.List;

/**
 * Created by marcobonati on 22/05/2017.
 */

public class DEGCMIntentService extends com.adobe.phonegap.push.GCMIntentService {

    public DEGCMIntentService(){
        super();
    }

    @Override
    public void onMessageReceived(String from, Bundle extras) {

        List<DEPushNotificationHandler> handlers = DEPushNotificationHandlerRegistry.getInstance().getHandlers();

        for (DEPushNotificationHandler handler:handlers){
            try {
                if (handler.canHandleMessage(from, extras)){
                    return;
                }
            } catch (Throwable th){
                //TODO!! log
            }
        }
        super.onMessageReceived(from, extras);
    }

}