Skip to content

Commit

Permalink
Fix firebase crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Jul 23, 2020
1 parent 2ff7751 commit 0191451
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/status_im/notifications/core.cljs
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
(ns status-im.notifications.core
(:require [re-frame.core :as re-frame]
[quo.platform :as platform]
[status-im.utils.fx :as fx]
[status-im.native-module.core :as status]
["react-native-push-notification" :as rn-pn]))

;; FIXME: Repalce with request permission from audio messages PR lib
(re-frame/reg-fx
::request-permission
(fn []
(.requestPermissions ^js rn-pn)))
(when platform/ios?
(.requestPermissions ^js rn-pn))))

(fx/defn request-permission
{:events [::request-permission]}
Expand Down

0 comments on commit 0191451

Please sign in to comment.