com.netmera.mobile
Class NetmeraPush

java.lang.Object
  extended by com.netmera.mobile.BasePush
      extended by com.netmera.mobile.NetmeraPush

Deprecated. use NetmeraPushObject to create push notifications. After preparing, use NetmeraPushSender to send this notification. NetmeraPush class is used to send push notifications into devices from your application.

NetmeraClient("your_api_key");
NetmeraPush push = new NetmeraPush();
push.setSendToIos(true);
push.setSendToAndroid(true);
push.setMessage("This is the message that will be sent as a notification");
push.sendNotification();

public class NetmeraPush
extends BasePush


Constructor Summary
NetmeraPush()
          Deprecated.  
 
Method Summary
 void sendNotification()
          Deprecated. use NetmeraPushObject to create push notifications. After preparing, use NetmeraPushSender to send this notification. Sends notification to IOS and Android devices.
 void setSendToAndroid(boolean sendToAndroid)
          Deprecated. use NetmeraPushObject to create push notifications. After preparing, use NetmeraPushSender to send this notification.
 void setSendToIos(boolean sendToIOS)
          Deprecated. use NetmeraPushObject to create push notifications. After preparing, use NetmeraPushSender to send this notification.
 
Methods inherited from class com.netmera.mobile.BasePush
addDeviceGroup, getDeviceGroups, getMessage, getParameter, setBoxPush, setCirclePush, setDeviceGroup, setDeviceGroups, setMessage, setParameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetmeraPush

public NetmeraPush()
Deprecated. 
Method Detail

setSendToAndroid

public void setSendToAndroid(boolean sendToAndroid)
Deprecated. use NetmeraPushObject to create push notifications. After preparing, use NetmeraPushSender to send this notification.

Parameters:
sendToAndroid -

setSendToIos

public void setSendToIos(boolean sendToIOS)
Deprecated. use NetmeraPushObject to create push notifications. After preparing, use NetmeraPushSender to send this notification.

Parameters:
sendToIOS -

sendNotification

public void sendNotification()
                      throws NetmeraException
Deprecated. use NetmeraPushObject to create push notifications. After preparing, use NetmeraPushSender to send this notification. Sends notification to IOS and Android devices.

Specified by:
sendNotification in class BasePush
Throws:
NetmeraException - if no platform is chosen. You should set either sendToAndroid or sendToIos to true.