public static void turnOnVIVOPush ( final AVCallback < Boolean > callback ) { com . vivo . push . PushClient . getInstance ( AVOSCloud . getContext ( ) ) . turnOnPush ( new com . vivo . push . IPushActionListener ( ) { public void onStateChanged ( int state ) { if ( null == callback ) { AVException exception = null ; if ( 0 != state ) { exception = new AVException ( AVException . UNKNOWN , "VIVO server internal error, state=" + state ) ; } callback . internalDone ( null == exception , exception ) ; } } } ) ; }
turn on VIVO push .