Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set up a deep link? #11

Open
oooeee opened this issue Aug 19, 2020 · 0 comments
Open

How to set up a deep link? #11

oooeee opened this issue Aug 19, 2020 · 0 comments

Comments

@oooeee
Copy link

oooeee commented Aug 19, 2020

Nice to meet you, I'm using andpush.

If I want to specify a deep link with andpush, how should I describe it?

I use it like this.

def self.push_notification(user, title, body)
    client  = Andpush.new(Setting.fcm_server_key)
    payload = {
      to: user.device.token,
      notification: {
        title: title,
        body: body
      },
      data: {
        extra: "data"
      }
    }

    client.push(payload)
  end

はじめまして、andpushを利用しています。

andpushでディープリンクを指定したい場合は、どのように記載すると良いですか?

このような感じで利用しています。

※英文はGoogle翻訳を使ったので文法に間違いがあると思います、ご容赦ください

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant