B4i Library iTopNotifications - Sliding notifications

Discussion in 'iOS Libraries' started by Erel, Feb 6, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User

    This is a wrapper for LNRSimpleNotifications: https://github.com/LISNR/LNRSimpleNotifications

    It implements nice sliding notifications that slide from the top or bottom.
    The user can click on the notification to dismiss it or wait for the set duration.

    test.gif

    It wraps a swift library so you need to set #MinVersion to 8 and it requires B4i v3.6+.

    Usage example:
    Code:
    Sub Process_Globals
       
    Public App As Application
       
    Public NavControl As NavigationController
       
    Private Page1 As Page
       
    Private tn As TopNotificationsManager
    End Sub

    Private Sub Application_Start (Nav As NavigationController)
       NavControl = Nav
       Page1.Initialize(
    "Page1")
       Page1.Title = 
    "Page 1"
       Page1.RootPanel.LoadLayout(
    "1")
       NavControl.ShowPage(Page1)
       tn.Initialize(
    "tn")
    End Sub

    Sub Page1_Click
       tn.ShowNotification(
    "This is the title"$"This is the body.
    And this is the second line."$
    3000)
    End Sub
    There are various properties that you can change to change notification appearance.
    Note that there is no simulator binary included.

    Xcode 9 Swift framework is attached.
    Xcode 10: www.b4x.com/b4i/files/Xcode10SwiftFrameworks.zip
     

    Attached Files:

    Last edited: Sep 20, 2018
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. ilan

    ilan Expert Licensed User

    Hi,

    This notification can only be shown inside the app right?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes.
     
  5. Daniel Uribe

    Daniel Uribe Member Licensed User

    Hi Developers!!

    I have a little problem, when i compile in release mode, hosted builder, B4I v4.40 release, the archive.zip is not generated. But, if I do not select the library then the file is generated, has anyone else had this problem? Greetings and excellent day!
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    You should be able to download the ipa file directly. It is equivalent to the archive.zip package.
     
    Daniel Uribe likes this.
  7. Daniel Uribe

    Daniel Uribe Member Licensed User

    Thanks a lot for your reply!!

    Ok, can i upload the ipa file directly? or preferably compress it and then upload it? thanks, again!!!

    God.. Greetings from México and Colombia, needed some beers!
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Yes.
     
    Daniel Uribe likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice