code: public function registerDeviceOnTopic(string $deviceArn, string $topicArn)
      {
          $this->sns->subscribe(
              [
                  'TopicArn' => $topicArn,
                  'Protocol' => 'application',
                  'Endpoint' => $deviceArn,
              ]
          );
      }
docs: Subscribe a device to the topic, will create new numbered topics
  once the first is full.
  
  @param string $deviceArn
  @param string $topicArn  The base name of the topics to use
  
  @deprecated use SnsClient directly to subscribe
  @see SnsClient::subscribe