Giter Site home page Giter Site logo

yuki24 / andpush Goto Github PK

View Code? Open in Web Editor NEW
81.0 6.0 10.0 145 KB

Android Push Notification in Ruby: The fastest client for FCM (Firebase Cloud Messaging)

Home Page: https://github.com/yuki24/andpush

License: MIT License

Ruby 99.16% Shell 0.84%
ruby android fcm firebase-cloud-messaging gcm google-cloud-messaging push-notifications push notifications

andpush's Issues

How to set up a deep link?

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翻訳を使ったので文法に間違いがあると思います、ご容赦ください

NoMethodError (undefined method `new' for Andpush:Module):

NoMethodError (undefined method `new' for Andpush:Module):

newメソッドを使おうとすると存在しないと言われます。
なぜでしょうか?

[translation added by repo maintainer]
The Andpush#new initializer does not seem to exist. Any idea why this is happening?

IOS Apn compatibility

Hi, this is actually a question.

Can one use your gem to send also IOS push notifications through Firebase assuming the APN is correctly connected through the firebase panel?

Thanks

Performance for 10M messages via FCM?

Hi, I'm needing to send 10M desktop web pushes in < 1 hour.

So far I see a few articles about how to do this with Elixir, here's the best article I think:

https://blog.discordapp.com/how-discord-handles-push-request-bursts-of-over-a-million-per-minute-with-elixirs-genstage-8f899f0221b4

Takeaways from article:

  • They use Elixir (I'd rather use ruby if possible, even if it's a bit slower)
  • They use Google XMPP API for FCM which they say is faster
  • There is a limit of 100 requests in flight at a time
  • There is connection draining (talked about here if you search DRAINING)

Unfortunately, I can't use broadcast messages because each message is personalized.

Do you have any idea what performance would be like while using Andpush and HTTP/2 or whatever goods you got?

Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.