title: Android Wear Wake Mobile
body: <p><strong>Edit</strong>
  I erased everything for clarity. as i am going to simplify my request for information:
  What is best way to handle receiving messages from a wear on a mobile when the mobile is asleep or if app is not in the foreground?</p>
  
  <p>During both these circumstances even though i send messages to the mobile from the wear, the mobile does not receive or process them. i do not know which. </p>
  
  <p>if have read the following:
  1) partial wakelocks - no good i dont want to really keep CPU awake
  2) handler
  3) broadcastreceiver
  4) service</p>
  
  <p>i do not know exactly what i should do in order to process messages with my app when app is not in the foreground and/or asleep.</p>
  
  <p>If the onMessageReceieved() SHOULD process during sleep and or when app is not in foreground letting me know that would also be beneficial as right now i think it should not based on what i am seeing in my app.</p>
  
  <p>Also i am using livelisteners instead of a listener service. is this my problem? if i instead switch to a wearablelistenerservice class will that solve my issues and work correctly? 
  i do this </p>
  
  <pre><code> @Override
  public void onConnected(Bundle connectionHint) {
      if (Log.isLoggable(TAG, Log.DEBUG)) {
          Log.d(TAG, "Connected to Google Api Service");
      }
      Wearable.MessageApi.addListener(mGoogleApiClient, this);
  }
  </code></pre>
  
  <p>instead of if i do this:</p>
  
  <pre><code>public class DataLayerListenerService extends WearableListenerService{
  </code></pre>
  
  <p>and put all my codes in there and then do this:</p>
  
  <pre><code>&lt;service android:name=".DataLayerListenerService"&gt;
      &lt;intent-filter&gt;
        &lt;action android:name="com.google.android.gms.wearable.DATA_CHANGED" /&gt;
        &lt;data android:scheme="wear" android:host="*"
             android:path="/start-activity" /&gt;
      &lt;/intent-filter&gt;
  &lt;/service&gt;
  </code></pre>
  
  <p>will that solve my not receiving messages problem when not in foreground and when phone is asleep? as this intent will act as a service that runs in the background?</p>