Changeset 2685645
- Timestamp:
- 02/27/2022 07:27:39 PM (4 years ago)
- Location:
- androapp/trunk
- Files:
-
- 5 edited
-
androapp.php (modified) (1 diff)
-
androapp_functions.php (modified) (3 diffs)
-
androapp_tools.php (modified) (6 diffs)
-
pw_mobile_settings.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
androapp/trunk/androapp.php
r2625625 r2685645 5 5 Description: Native mobile app for android platform, create a beautiful mobile app for your wordpress blog with Push Notifications / Deep Linking / Monetization Option / Infinite Scroll / Fast Image Rendering / Inbuilt Whatsapp/facebook and other sharing channels / Customize Design /Live preview / Test on your phone features. Get Started with your app in minutes at no cost for the first month and $60/year (reduced from $150/year) from next year onwards. We do not touch your existing mobile/desktop themes. 6 6 Author: Genius Fools 7 Version: 2 3.027 Version: 24.00 8 8 Author URI: http://www.geniusfools.com/ 9 9 Text Domain: androapp -
androapp/trunk/androapp_functions.php
r2625620 r2685645 34 34 add_filter( 'wp_footer', array($this,'add_css_bottom') ); 35 35 add_action( 'wp_json_server_before_serve', array($this,'myplugin_api_init')); 36 add_action( 'send_push_notification_after_publish', array($this,'send_push_notification_after_publish'), 1 0, 10);36 add_action( 'send_push_notification_after_publish', array($this,'send_push_notification_after_publish'), 12, 12 ); 37 37 add_filter( 'the_content', array($this,'androapp_after_post_filter') ); 38 38 add_filter( 'the_content', array($this,'androapp_before_post_filter') ); … … 231 231 232 232 function send_push_notification_after_publish($post_id, $post_title, 233 $excerpt, $postimage, $ link, $cache, $postType,233 $excerpt, $postimage, $postlink, $cache, $postType, 234 234 $google_api_key, $notification_type, $isBulkSend, $firebaseApiVersion, 235 235 $firebaseServiceAccountFilePath) … … 794 794 global $post; 795 795 $ogdesc = ""; 796 if (class_exists('WPSEO_Meta') ){796 if (class_exists('WPSEO_Meta') && class_exists('WPSEO_Frontend')){ 797 797 $ogdesc = WPSEO_Meta::get_value( 'opengraph-description', $post_id ); 798 798 -
androapp/trunk/androapp_tools.php
r2553965 r2685645 11 11 12 12 $postid = intval($_POST['selfpushoptions']); 13 $pushnotificationtext = $_POST['pushnotificationtext']; 14 echo "Push notification text ". $pushnotificationtext; 13 15 $disableBulkSend = $accountOptions[pw_mobile_app_settings::$disableBulkSend]; 14 16 $disableNotificationCache = $accountOptions[pw_mobile_app_settings::$disableNotificationCache]; … … 37 39 $excerpt = $wppost['excerpt']['rendered']; 38 40 } 39 41 if(!empty($pushnotificationtext)){ 42 $excerpt = $pushnotificationtext; 43 } 40 44 $postimage = $wppost['featuredimage']; 41 45 if(empty($postimage)){ … … 76 80 $excerpt, $postimage, $postlink, $cache, $postType, 77 81 $accountOptions[ANDROAPP_GCM_API_KEY], 78 !($disableBulkSend == 1),82 !($disableBulkSend == '1'), 79 83 $accountOptions[ANDROAPP_FIREBASE_API_VERSION], 80 84 $accountOptions[ANDROAPP_FIREBASE_SERVICE_ACCOUNT_FILE_PATH] … … 97 101 <b><?php _e('Enter Post Id','androapp');?>: </b><input type="text" name="selfpushoptions" value="" placeholder="Enter Post Id"/> 98 102 (<?php _e('please enter correct post id','androapp');?>)</br></br> 103 <!-- 104 <b><?php _e('Push Notification Text','androapp');?>: </b><br/> 105 <textarea id="pushnotificationtext" name="pushnotificationtext" value="" placeholder="Message" rows="3" cols="40"></textarea><br/> 106 (<?php _e('please enter the text, this will be used instead of post excerpt','androapp');?>)</br></br> 107 --> 99 108 <b><?php _e('Send Immediate','androapp');?>: </b><input type="checkbox" name="immediate" value="1"/> </br> 100 109 <?php _e('By default notification is scheduled to go after 10 minutes, check this box to send push notification immediately, this might take some time depending on number of users and will show logs on this screen, your server might kill this request in middle depending on your server configuration, so we recommend not to select this option in general.', … … 115 124 echo '<table border="1px;" style="max-width:800px">'; 116 125 echo "<tr><th>Post Id</th><th>Title</th><th>Excerpt</th><th>Image Link</th>" 117 . "<th>Post Link</th><th>Cached on Device</th><th>Bulk Send</th> < /tr>";126 . "<th>Post Link</th><th>Cached on Device</th><th>Bulk Send</th> <th>Firebase API Version</th></tr>"; 118 127 $pushPostCount = 0; 119 128 foreach($crons as $key => $value){ … … 128 137 foreach ($v as $kk => $vv){ 129 138 foreach ($vv['args'] as $ka => $va){ 130 if($ka > 5 && $ka < 9){139 if($ka == 6 || $ka == 7 || $ka == 8 || $ka == 11){ 131 140 continue; 132 141 } -
androapp/trunk/pw_mobile_settings.php
r2625620 r2685645 1017 1017 1018 1018 function schedule_push_notification($id, $title, $excerpt, $postimage, $link, $cache, $postType, $key, $isBulkSent, $firebaseApiVersion, $firebaseServiceAccountFilePath){ 1019 //this calls send_push_notification_after_publish in androapp_functions.php 1019 1020 wp_schedule_single_event( time()+ 10*15 , 'send_push_notification_after_publish', 1020 1021 array ($id, $title, $excerpt, $postimage, $link, $cache, $postType, $key , "stack", $isBulkSent, $firebaseApiVersion, $firebaseServiceAccountFilePath)); 1021 }1022 1023 function send_push_notification_after_publish($post_id, $post_title,1024 $excerpt, $postimage, $postlink, $cache, $postType,1025 $google_api_key, $notification_type, $isBulkSend, $firebaseApiVersion, $firebaseServiceAccountFilePath)1026 {1027 require_once PW_MOBILE_PATH.'gcm/send_message.php';1028 sendPushNotification(array("post_id" => $post_id, "title" => $post_title,1029 "excerpt" =>$excerpt, "postImage" => $postimage, "link" => $postlink, "cache" => $cache,1030 "postType" => $postType,1031 "notification_type" => $notification_type), $google_api_key, $isBulkSend,1032 $firebaseApiVersion, $firebaseServiceAccountFilePath);1033 1022 } 1034 1023 … … 1237 1226 <p style="color:red"><?php _e('Note: You need to publish new build everytime you change it','androapp');?></p> 1238 1227 For Android App:<input type="text" name="<?php echo $this->account_tab_key."[".ANDROAPP_ANALYTICS_TRACKING_ID_KEY."]"?>" value="<?php echo $options[ANDROAPP_ANALYTICS_TRACKING_ID_KEY];?>" /> 1239 </br> 1240 For IOS App:<input type="text" name="<?php echo $this->account_tab_key."[".ANDROAPP_IOS_ANALYTICS_TRACKING_ID_KEY."]"?>" value="<?php echo $options[ANDROAPP_IOS_ANALYTICS_TRACKING_ID_KEY];?>" /> 1241 1228 </br> 1242 1229 </td> 1243 1230 </tr> -
androapp/trunk/readme.txt
r2625625 r2685645 4 4 Tags: Android app, Mobile App, Native Mobile App, app for WordPress, mobile app plugin, native app plugin, push notifications, website to mobile app, WordPress app builder, WordPress app maker, WordPress blog app, androapp, deep linking 5 5 Requires at least: 3.3 6 Tested up to: 5. 87 Stable tag: 2 3.026 Tested up to: 5.9.1 7 Stable tag: 24.00 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 140 140 141 141 == Changelog == 142 = 24.00 = 143 1. Auto Push Notification fix, fixed issue in push notification on a new post. 142 144 = 23.02 = 143 145 Minor fix, no need to publish new apk. … … 448 450 449 451 == Upgrade Notice == 452 = 24.00 = 453 Auto Push Notification fix, fixed issue in push notification on a new post. 450 454 = 23.02 = 451 455 Minor fix, no need to publish new apk.
Note: See TracChangeset
for help on using the changeset viewer.