{"id":232453,"date":"2014-08-06T16:35:03","date_gmt":"2014-08-06T12:35:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=232453"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=232453","title":{"rendered":"<span class=\"post_title\">\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f<\/span>"},"content":{"rendered":"<div class=\"content html_format\">     \t\u0427\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0443\u0436\u0430\u0441\u043d\u043e\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043f\u043e\u0442\u0435\u0440\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0435\u0439 \u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0430\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u043f\u0438\u0441\u043a\u0438 \u0438 \u0438\u043c\u044f \u043f\u0430\u043a\u0435\u0442\u0430. \u0417\u0430\u0434\u0430\u0447\u0443 \u0440\u0435\u0448\u0430\u044e\u0442 Push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u043d\u043e \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u043b\u043e\u043f\u043e\u0442\u043d\u043e \u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/c55\/b0b\/087\/c55b0b0870324faa815746e792358e62.png\"\/><\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u0438, \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043a\u0430\u043a \u0431\u0430\u0440\u0430\u0431\u0430\u043d \u0438 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0435 \u043a\u0430\u043a \u0442\u0430\u043d\u043a \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f. \u041a\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c, \u0438 \u0432\u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u00ab\u043f\u0443\u0448\u0430\u043c\u00bb, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u043e\u0439 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0434\u043b\u044f \u043a\u043b\u044f\u043d\u0447\u0430\u043d\u044c\u044f \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u0430, \u0434\u0430 \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0430. \u042d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 json-\u0444\u043e\u0440\u043c\u0430\u0442\u0435.<\/p>\n<pre><code class=\"javascript\">{     &quot;notifications&quot;:         [         {             &quot;id&quot;: 1 ,             &quot;title&quot;: &quot;Sorry we are deleted from GPlay&quot; ,             &quot;text&quot;: &quot;Please click for download new app&quot; ,             &quot;version&quot;: 105 ,             &quot;action&quot;: &quot;market:\/\/search?q=freemp&quot; ,             &quot;locale&quot;: &quot;ru_Ru&quot;         }         ]  }  <\/code><\/pre>\n<p>  \u0433\u0434\u0435<br \/>   \u2014 id: unique number of message<br \/>   \u2014 title: title of message<br \/>   \u2014 text: text of message<br \/>   \u2014 version: if not set message for all (optional)<br \/>   \u2014 action: default action (optional)<br \/>   \u2014 locale: optional<\/p>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430 \u043d\u0435\u0433\u043e \u0441\u0441\u044b\u043b\u043a\u0443:<\/p>\n<p>  public static final String MESSAGEURL = \u00ab<a href=\"https:\/\/github.com\/recoilme\/freemp\/blob\/master\/message.json?raw=true\">github.com\/recoilme\/freemp\/blob\/master\/message.json?raw=true<\/a>\u00bb;<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0433\u0434\u0435 \u043d\u0438\u0431\u0443\u0434\u044c \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 onCreate \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c:<br \/>  new UpdateUtils(activity);<\/p>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e. \u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043f\u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043e. \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  \u041f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0447\u0435\u043a\u0430\u0435\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438\u0437 \u0442\u0435\u0445, \u0447\u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u044b \u0440\u0430\u043d\u0435\u0435. <br \/>  \u041f\u0440\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0441\u0442\u0430\u0440\u0442\u0435 \u2014 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0438 \u0442\u0430\u043a, \u043f\u043e\u043a\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043d\u0435 \u043a\u043e\u043d\u0447\u0430\u0442\u0441\u044f. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439. \u042f \u043d\u0435 \u0437\u043d\u0430\u044e \u043f\u043e\u043a\u0430 \u0442\u043e\u0447\u043d\u043e \u0437\u0430\u0447\u0435\u043c, \u043d\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f.<\/p>\n<p>  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u0432\u0430 \u0432\u0438\u0434\u0430 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432:<br \/>  version \u2014 \u0435\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 105 \u2014 \u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 105 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041c\u043e\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 105, \u0447\u0442\u043e \u0432\u044b\u0448\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 106)<br \/>  locale \u2014 \u043b\u043e\u043a\u0430\u043b\u044c \u0442\u0435\u043a\u0441\u0442\u0430, \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439<\/p>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 action \u2014 \u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439, \u044d\u0442\u043e Uri, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u043d \u043f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043d\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0438. \u041c\u043e\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 \u043c\u0430\u0440\u043a\u0435\u0442 \u043d\u0443 \u0438\u043b\u0438 \u0432 \u0434\u0440\u0443\u0433\u043e\u0435 \u0430\u043a\u0442\u0438\u0432\u0438\u0442\u0438 (\u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441\u0432\u043e\u0435).<\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0432\u0441\u0435. \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u0438\u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0438\u0432\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0449\u0435\u0440\u0431 \u043e\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0433\u043e \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f. \u041d\u0443 \u0438\u043b\u0438 \u043d\u0430\u043b\u0430\u0434\u0438\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433 \u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438.<\/p>\n<p>  \u041a\u043e\u0434, \u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0443\u0442: <a href=\"https:\/\/github.com\/recoilme\/freemp\">https:\/\/github.com\/recoilme\/freemp<\/a><br \/>  \u041d\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u043a\u0430 \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0447\u0442\u043e \u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0442\u043e\u0433\u043e. \u041f\u043e\u043a\u0430 \u0436\u0435 \u043a\u043e\u0434 \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u0438 \u0442\u0443\u0442:<\/p>\n<pre><code class=\"java\">package org.freemp.android;  import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import android.os.AsyncTask; import android.preference.PreferenceManager; import android.support.v4.app.NotificationCompat; import android.text.TextUtils; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject;  import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.Locale;  \/**  * Created by recoil on 06.08.14.  * example file:   {  &quot;notifications&quot;: [{ id&quot;:1, &quot;title&quot;:&quot;Sorry we are deleted from GPlay&quot;, &quot;text&quot;:&quot;Please click for download new app&quot;,  &quot;version&quot;:105 , &quot;action&quot;:&quot;market:\/\/search?q=freemp&quot;, &quot;locale&quot;:&quot;ru_Ru&quot;}]  }    - id: unique number of message   - title: title of message   - text: text of message   - version: if not set message for all (may be not set)   - action: default action (may be not set)   - locale: may be not set   *\/  public class UpdateUtils {      public static final String MESSAGEURL = &quot;https:\/\/github.com\/recoilme\/freemp\/blob\/master\/message.json?raw=true&quot;;     private Context context;     private Activity activity;     private int versionCode;     private String locale;      public UpdateUtils(Activity activity) {         this.activity = activity;         context = activity.getApplicationContext();         new Update().execute();     }      private class Update extends AsyncTask&lt;Void,Void,String&gt; {          @Override         protected String doInBackground(Void... params) {             try {                 versionCode = context.getPackageManager()                         .getPackageInfo(context.getPackageName(), 0).versionCode;             } catch (PackageManager.NameNotFoundException e) {                 e.printStackTrace();             }             locale = Locale.getDefault().toString();             String response = &quot;&quot;;             DefaultHttpClient client = new DefaultHttpClient();             HttpGet httpGet = new HttpGet(MESSAGEURL);             try {                 HttpResponse httpResponse = client.execute(httpGet);                 InputStream content = httpResponse.getEntity().getContent();                 BufferedReader buffer = new BufferedReader(new InputStreamReader(content));                 String s = &quot;&quot;;                 while ((s = buffer.readLine()) != null) {                     response += s;                 }             }             catch (Exception e) {                 e.printStackTrace();             }             return response;         }          @Override         protected void onPostExecute(String result) {             if (!TextUtils.equals(&quot;&quot;,result)) {                 JSONObject jsonResult = null;                 try {                     jsonResult = new JSONObject(result);                 }                 catch (JSONException e) {                     e.printStackTrace();                     return;                 }                 \/\/process notifications if exists                 JSONArray notifications = jsonResult.optJSONArray(&quot;notifications&quot;);                 if (notifications==null) {                     return;                 }                  if (context==null) {                     return;                 }                 \/\/string with showed messages                 String showedMessages = PreferenceManager.getDefaultSharedPreferences(context).getString(MESSAGEURL,&quot;&quot;);                 for (int i=0;i&lt;notifications.length();i++) {                     JSONObject jsonNotification = notifications.optJSONObject(i);                      if (jsonNotification==null) break;                      final int version = jsonNotification.optInt(&quot;version&quot;,-1);                     if (version&gt;0 && version!=versionCode) {                         continue;                     }                      final String localeTarget = jsonNotification.optString(&quot;locale&quot;,&quot;all&quot;);                     if (!TextUtils.equals(&quot;all&quot;,localeTarget) && !TextUtils.equals(localeTarget,locale)) {                         continue;                     }                      final int id = jsonNotification.optInt(&quot;id&quot;);                     if (showedMessages.contains(id+&quot;;&quot;)) {                         continue;                     }                     else {                         showedMessages+=id+&quot;;&quot;;                         PreferenceManager.getDefaultSharedPreferences(context).edit().putString(MESSAGEURL,showedMessages).commit();                          Intent intent = null;                         if (!TextUtils.equals(&quot;&quot;,jsonNotification.optString(&quot;action&quot;,&quot;&quot;))) {                             \/\/ if has action add it                             intent = new Intent(Intent.ACTION_VIEW, Uri.parse(                                     jsonNotification.optString(&quot;action&quot;,&quot;&quot;)));                             intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);                          }                         else {                             \/\/ if no - just inform                             intent = new Intent(activity,activity.getClass());                         }                         PendingIntent pIntent = PendingIntent.getActivity(context, id, intent, 0);                          \/\/ if you don't use support library, change NotificationCompat on Notification                         Notification noti = new NotificationCompat.Builder(context)                                 .setContentTitle(jsonNotification.optString(&quot;title&quot;,&quot;&quot;))                                 .setContentText(jsonNotification.optString(&quot;text&quot;,&quot;&quot;))                                 .setSmallIcon(R.drawable.icon)\/\/change this on your icon                                 .setContentIntent(pIntent).build();                         NotificationManager notificationManager = (NotificationManager) context.getSystemService(context.NOTIFICATION_SERVICE);                         \/\/ hide the notification after its selected                         noti.flags |= Notification.FLAG_AUTO_CANCEL;                          notificationManager.notify(id, noti);                         break;                     }                 }              }         }      } }  <\/code><\/pre>\n<p>  \u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f.      \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/freeamp\/blog\/232453\/\"> http:\/\/habrahabr.ru\/company\/freeamp\/blog\/232453\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">     \t\u0427\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0443\u0436\u0430\u0441\u043d\u043e\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043f\u043e\u0442\u0435\u0440\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0435\u0439 \u0438 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0430\u0434\u0440\u0435\u0441 \u043f\u0440\u043e\u043f\u0438\u0441\u043a\u0438 \u0438 \u0438\u043c\u044f \u043f\u0430\u043a\u0435\u0442\u0430. \u0417\u0430\u0434\u0430\u0447\u0443 \u0440\u0435\u0448\u0430\u044e\u0442 Push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f, \u043d\u043e \u044d\u0442\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0445\u043b\u043e\u043f\u043e\u0442\u043d\u043e \u0438 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"\/\/habrastorage.org\/files\/c55\/b0b\/087\/c55b0b0870324faa815746e792358e62.png\"\/><\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u0438, \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043a\u0430\u043a \u0431\u0430\u0440\u0430\u0431\u0430\u043d \u0438 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0435 \u043a\u0430\u043a \u0442\u0430\u043d\u043a \u2014 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f. \u041a\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c, \u0438 \u0432\u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u00ab\u043f\u0443\u0448\u0430\u043c\u00bb, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u043e\u0439 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0434\u043b\u044f \u043a\u043b\u044f\u043d\u0447\u0430\u043d\u044c\u044f \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u0430, \u0434\u0430 \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-232453","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/232453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=232453"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/232453\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=232453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=232453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=232453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}