Changeset 1599663
- Timestamp:
- 02/20/2017 11:08:39 AM (9 years ago)
- Location:
- all-push-notification/trunk
- Files:
-
- 5 edited
-
pushnotification-admin/class-custom-pushnotification.php (modified) (1 diff)
-
pushnotification/class-pushnotification-android.php (modified) (1 diff)
-
pushnotification/class-pushnotification-ios.php (modified) (1 diff)
-
pushnotification/class-pushnotification.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
all-push-notification/trunk/pushnotification-admin/class-custom-pushnotification.php
r1576513 r1599663 158 158 159 159 if($error == false) { 160 //$PushNotifications_obj=new PushNotifications(); 161 //$PushNotifications_obj->send_notification($all_userDevices,$message); 162 160 163 $PushNotifications_obj=new PushNotifications(); 161 $PushNotifications_obj->send_notification($all_userDevices,$message); 164 $regIdChunk=array_chunk($all_userDevices,100); 165 166 foreach($regIdChunk as $RegId){ 167 168 $PushNotifications_obj->send_notification($RegId,$message); 169 170 } 162 171 } 163 172 } -
all-push-notification/trunk/pushnotification/class-pushnotification-android.php
r1487061 r1599663 3 3 4 4 function sendToAndroid($registatoin_ids, $message) { 5 6 ini_set('max_execution_time', 600); //600 seconds = 10 minutes 7 ini_set("memory_limit","512M"); 8 set_time_limit(0); 9 5 10 $error = false; 6 11 -
all-push-notification/trunk/pushnotification/class-pushnotification-ios.php
r1487061 r1599663 1 1 <?php 2 2 class PushNotificationsIos { 3 3 4 public static function sendToIOS($devices, $message) { 5 6 ini_set('max_execution_time', 600); //600 seconds = 10 minutes 7 ini_set("memory_limit","512M"); 8 set_time_limit(0); 4 9 5 10 $upload_dir = wp_upload_dir(); -
all-push-notification/trunk/pushnotification/class-pushnotification.php
r1501046 r1599663 7 7 function send_notification($userDevices, $message) { 8 8 9 ini_set("memory_limit","256M"); 9 ini_set('max_execution_time', 600); //600 seconds = 10 minutes 10 ini_set("memory_limit","512M"); 10 11 set_time_limit(0); 11 12 -
all-push-notification/trunk/readme.txt
r1576513 r1599663 4 4 Requires at least: 4.4 5 5 Tested up to: 4.7 6 Stable tag: 1.5. 26 Stable tag: 1.5.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 116 116 117 117 == Changelog == 118 119 = 1.5.3 = 120 * Split the mobile devices token in to chunks of 100 for sending messages in group.This will help when we have more number of users and we need to send pushntoification at once.Also set Maximum execution time. 118 121 119 122 = 1.5.2 = … … 198 201 == Upgrade Notice == 199 202 203 = 1.5.3 = 204 * Split the mobile devices token in to chunks of 100 for sending messages in group.This will help when we have more number of users and we need to send pushntoification at once.Also set Maximum execution time. 205 200 206 = 1.5.2 = 201 207 * Description About The Custom Message Via Pushnotification
Note: See TracChangeset
for help on using the changeset viewer.