Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B0BB1080D for ; Tue, 4 Mar 2014 16:46:09 +0000 (UTC) Received: (qmail 84241 invoked by uid 500); 4 Mar 2014 16:46:08 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 84198 invoked by uid 500); 4 Mar 2014 16:46:07 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 84183 invoked by uid 99); 4 Mar 2014 16:46:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 16:46:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brian.leroux@gmail.com designates 209.85.213.181 as permitted sender) Received: from [209.85.213.181] (HELO mail-ig0-f181.google.com) (209.85.213.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2014 16:46:00 +0000 Received: by mail-ig0-f181.google.com with SMTP id h18so1881254igc.2 for ; Tue, 04 Mar 2014 08:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=ywkq64cNogpKZQUf3RGlhsZfiIbQZeByTnM3Afl3XcA=; b=tzESb2PaTU6nRAlAzl/6Izaw92ENjFlGWL+zOblqQbM9JOxne7oaEmqB9Zgrd9oF8m CULIVQ4TZ6ysH2N0clLvZo5Zoy5NRrpEpiKAJ9Ce8YwC+C/6CTU/Hxg5YCbG0EYLlB+b MREBL7SaEpN4xXVMG1CHF2E1Qyh43g3idmJbQLNHAjp69Ow+M+cq1vh3RywBsvQZlBfe ThKbywKBInvoWgEtx4I7JefAk9OWA0z3gvJRQYNOfFKqeyu4eAXzA423uF23PJekJZM7 wf6W9KQ0d6QJWV2UcYP4Vc7hH0L8TdmrWgCnBOMyesfw0FQIdA557IQhicWOHL0s+THv EIkQ== MIME-Version: 1.0 X-Received: by 10.50.43.165 with SMTP id x5mr30287934igl.40.1393951539894; Tue, 04 Mar 2014 08:45:39 -0800 (PST) Sender: brian.leroux@gmail.com Received: by 10.50.213.35 with HTTP; Tue, 4 Mar 2014 08:45:39 -0800 (PST) In-Reply-To: References: Date: Tue, 4 Mar 2014 08:45:39 -0800 X-Google-Sender-Auth: yMlAujX9ONbjttUlEwc701q3cww Message-ID: Subject: Re: How to implement the navigator.notification in Firefox OS? From: Brian LeRoux To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=089e0122aee05ea03904f3caa29b X-Virus-Checked: Checked by ClamAV on apache.org --089e0122aee05ea03904f3caa29b Content-Type: text/plain; charset=ISO-8859-1 Seems to me that you want the plugin installation to copy the css file. its hacky, but you could use [1] as a workaround and file a bug to add other file types for copying. http://cordova.apache.org/docs/en/3.0.0/plugin_ref_spec.md On Mon, Mar 3, 2014 at 11:51 PM, Robber Phex wrote: > I suggest some method to solve it. > > First, we can make a rule that cordova-plugin-dialogs must work with > notification.css. and, plugin will create a null css in android for avoid > warming. we also update document. > > Second, in HTML, cordova-plugin-dialogs can work without link to > notification.css. and, the android platform is no problem, but in Firefox > OS, the js will add link to notification.css dynamically. > > All in all, I think the plugin must provide a single method to use it. same > code worked in Firefox OS, but warming in Android is not good enough. > > > On Tue, Mar 4, 2014 at 2:30 PM, Robber Phex wrote: > > > I think, If the developer must add notification.css, we should update the > > document as soon as possible. > > > > such as > > > http://cordova.apache.org/docs/en/3.3.0/cordova_notification_notification.md.html#Notification > > > > In last, I don't think it is good idea that let app show some warming in > > android. I suggest the plugin solve it. > > > > > > On Tue, Mar 4, 2014 at 9:30 AM, Carlos Santana >wrote: > > > >> The firefox documentation for the plugin [1] states that the user needs > to > >> add the css entry in index.html > >> > >> > >> > >> I don't completely understand the problem with android. > >> Are you referring to the fact that you wan to use same index.html for > both > >> android and firefox and that the notification.css will be missing for > >> android platform? > >> If that is the case use the merges to customize each platform. > >> > >> in your case you can put an empty file in merges/css/notifications.css > >> > >> The cordova docs [2] explains a similar use case. > >> > >> If you are looking to enhance the plugin to inject the css dynamically > you > >> will need to do that from the plugin's javascript for firefox located > here > >> [3] > >> > >> > >> [1]: > >> > >> > https://github.com/apache/cordova-plugin-dialogs/blob/master/doc/index.md#firefox-os-quirks > >> [2]: > >> > >> > http://cordova.apache.org/docs/en/3.4.0/guide_cli_index.md.html#The%20Command-Line%20Interface > >> [3]: > >> > >> > https://github.com/apache/cordova-plugin-dialogs/blob/dev/src/firefoxos/notification.js > >> > >> > >> > >> On Mon, Mar 3, 2014 at 2:49 AM, Robber Phex > wrote: > >> > >> > There is anyone? > >> > > >> > I found that the plug "cordova-plugin-dialogs" is already implement > the > >> > navigator.notification, but it need refer the CSS file > >> > "css/notification.css" in Firefox OS. > >> > > >> > This is a dilemma: > >> > > >> > If we consider Firefox OS, we must add link tag with > >> css/notification.css, > >> > but in android, the log display "AndroidProtocolHandler(2620): Unable > to > >> > open asset URL: file:///android_asset/www/css/notification.css" > >> > > >> > Or, if we not refer "css/notification.css", The navigator.notification > >> will > >> > not work at Firefox OS. such as CB-6154: > >> > https://issues.apache.org/jira/browse/CB-6145 > >> > > >> > > >> > Do someone have a solution? > >> > > >> > > >> > On Mon, Mar 3, 2014 at 7:31 AM, Robber Phex > >> wrote: > >> > > >> > > Hi,all. > >> > > > >> > > I found CB-6154, and I want to know how to fix it gracefully, how to > >> > > implement navigator.notification gracefully in FIrefox OS? > >> > > > >> > > CB-6154:https://issues.apache.org/jira/browse/CB-6145 > >> > > > >> > > Any suggestion is welcome! > >> > > Thanks. > >> > > > >> > > -- > >> > > Regards, > >> > > RobberPhex > >> > > > >> > > About me: http://about.me/RobberPhex > >> > > > >> > > >> > > >> > > >> > -- > >> > Regards, > >> > RobberPhex > >> > > >> > About me: http://about.me/RobberPhex > >> > > >> > >> > >> > >> -- > >> Carlos Santana > >> > >> > > > > > > > > -- > > Regards, > > RobberPhex > > > > About me: http://about.me/RobberPhex > > > > > > -- > Regards, > RobberPhex > > About me: http://about.me/RobberPhex > --089e0122aee05ea03904f3caa29b--