GithubHelp home page GithubHelp logo

isadon / rmessage Goto Github PK

View Code? Open in Web Editor NEW
410.0 410.0 64.0 13.84 MB

A crisp in-app notification/message banner built in Swift.

License: MIT License

Objective-C 0.62% Swift 96.90% Shell 0.61% Ruby 1.87%
ios notifications swift

rmessage's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rmessage's Issues

Could not load NIB in bundle, after install with cocoapods

Hi, I switched form TSMessage to RMessage and when using it after pods installation I got the following error each time I call any of the Messages. It seems to fail loading de xib file. It happens in any call, for example:

[RMessage showNotificationWithTitle:@"Log In Error"
                                   subtitle:@"Username contains an error"
                                       type:RMessageTypeWarning
                           customTypeString:nil];

I get the follwing error:

2016-01-18 09:43:33.600 AppName[40137:3085852] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/MyUser/Library/Developer/CoreSimulator/Devices/XXXX/data/Containers/Bundle/Application/XXXXX/AppName.app> (loaded)' with name 'RMessageView''
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000108dc1e65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010883adeb objc_exception_throw + 48
    2   CoreFoundation                      0x0000000108dc1d9d +[NSException raise:format:] + 205
    3   UIKit                               0x00000001099893cf -[UINib instantiateWithOwner:options:] + 499
    4   UIKit                               0x000000010998bb5b -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 223
    5   RMessage                            0x0000000107d889e1 -[RMessageView initWithDelegate:title:subtitle:iconImage:type:customTypeString:duration:inViewController:callback:buttonTitle:buttonCallback:atPosition:canBeDismissedByUser:] + 561
    6   RMessage                            0x0000000107d86408 +[RMessage showNotificationInViewController:title:subtitle:iconImage:type:customTypeString:duration:callback:buttonTitle:buttonCallback:atPosition:canBeDismissedByUser:] + 664
    7   RMessage                            0x0000000107d8611e +[RMessage showNotificationInViewController:title:subtitle:type:customTypeString:] + 270
    8   RMessage                            0x0000000107d85cec +[RMessage showNotificationWithTitle:subtitle:type:customTypeString:] + 156
    9   AppName                             0x0000000107a2f6f2 -[LoginViewController validLogInParameters:password:] + 242
    10  AppName                             0x0000000107a30297 -[LoginViewController login:password:] + 215
    11  AppName                             0x0000000107a2dcc8 -[LoginViewController loginAction:] + 248
    12  UIKit                               0x00000001095cf194 -[UIApplication sendAction:to:from:forEvent:] + 92
    13  UIKit                               0x000000010973e6fc -[UIControl sendAction:to:forEvent:] + 67
    14  UIKit                               0x000000010973e9c8 -[UIControl _sendActionsForEvents:withEvent:] + 311
    15  UIKit                               0x000000010973daf8 -[UIControl touchesEnded:withEvent:] + 601
    16  UIKit                               0x000000010963e49b -[UIWindow _sendTouchesForEvent:] + 835
    17  UIKit                               0x000000010963f1d0 -[UIWindow sendEvent:] + 865
    18  UIKit                               0x00000001095edb66 -[UIApplication sendEvent:] + 263
    19  UIKit                               0x00000001195a2871 -[UIApplicationAccessibility sendEvent:] + 77
    20  UIKit                               0x00000001095c7d97 _UIApplicationHandleEventQueue + 6844
    21  CoreFoundation                      0x0000000108ceda31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    22  CoreFoundation                      0x0000000108ce395c __CFRunLoopDoSources0 + 556
    23  CoreFoundation                      0x0000000108ce2e13 __CFRunLoopRun + 867
    24  CoreFoundation                      0x0000000108ce2828 CFRunLoopRunSpecific + 488
    25  GraphicsServices                    0x000000010dcabad2 GSEventRunModal + 161
    26  UIKit                               0x00000001095cd610 UIApplicationMain + 171
    27  AppName                             0x0000000107a45c2f main + 111
    28  libdyld.dylib                       0x000000010ba1792d start + 1
    29  ???                                 0x0000000000000001 0x0 + 1
)

On the other hand I added the code manually and there are no issues. Does this happen to anybody else?

PS. Perhaps I should not raise this here, but I have noticed some minor differences from the documentation github and the code such as enumerations like
RMessageNotificationType... that should be RMessageType....

Thanks.

Look into how to allow RMessage to perform custom animations

Initial thinking is to allow RMessage to be a view controller that is presented over other view controllers. Given this, we can look into possibly using the UITransitioningDelegate presentation flow to allow users of RMessage to implement their own custom animators.

Positioning RMessage

Hi,

[RMessage showNotificationWithTitle:@"Error Title" type:RMessageTypeError customTypeName:nil callback:^{
        // callback
    }];

By calling showNotificationWithTitlte, I got notification under navigation bar. Is that possible to create notification in front of navigation bar? Thank you!

Generalize the icon that RMessage presents as a UIView and not an UIImageView

Making the icon RMessage presents a UIView gives us freedom to present a UIButton, a UIImageView, and custom UIViews. This is better than the fixed type UIImageView that is expected to be an icon on the left of the RMessage title and subtitle message. We should also allow the user to dictate whether to present the icon/(custom uiview) to the left, right, top, or bottom of the the actual message.

Assets are not shown on the default presets

Hi,

I am trying to show a success message but can't get the image to show. Couldn't "SuccessMessageIcon.png" in the project folder.

Using pods and the latest (swift) version.

[Issue] [iPhone X] Notification banner is too short, doesn't extend down far enough to display title.

Hi there!

I just started testing on iPhone X and noticed that the top banner (when no nav bar is present) doesn't extend down far enough to show the title and description properly.

This is obviously due to the weird new height measurements of iPhone X's nav bar but I was wondering if this is already a solved issue or if there's something I should be specifically doing to solve this?

Thanks!

This is the code I'm using:

[RMessage showNotificationWithTitle:@"Important account change"
                               subtitle:@"You have been logged out due to an important account change."
                                   type:RMessageTypeCustom
                         customTypeName:mProfileStyleKey
                               callback:nil];

View controller peeks at the top

Hi,

It seems that when (spring) animating the message from the top, you can see the view controller on which we are presenting peek at the top for a brief moment. Has this been addressed before? supposedly the solution is making the height of the message window slightly higher.

Typo in your README.md

In your second example

   title:@"Update available"
subtitle:@"Please update the app"
   image:nil

image needs to become iconImage

Also in your [RMessageView appearance] example

[[RMessageView appearance] setContentFont:[UIFont boldSystemFontOfSize:10]];
[[RMessageView appearance] setContentTextColor:[UIColor greenColor]];

needs to become

[[RMessageView appearance] setSubtitleFont:[UIFont boldSystemFontOfSize:10]];
[[RMessageView appearance] setSubtitleTextColor:[UIColor greenColor]];

update the title of RMessage (Countdown scenario)

I want to use RMessage to show countdown. How can I update the text of visible RMessage?

(For e.g.:- In temple run game, while resuming it shows 3..2..1. In similar fashion, I want to use RMessage and update the text)

PODSpec update

Hello, could we update the podspec please :) otherwise we are stuck with the version that doesnt load the NIB properly hehe!

thanks!

Set icon color in custom designs JSON

Hi there,

Is it possible to set the tint color for the icon inside of AlternativeDesigns.json?

I have checked the guide and it isn't there, but is it possible to do so without creating multiple coloured image sets? Would just be a good space saver for me because I use differently colored icons multiple times throughout my app.

Thanks!

prefersStatusBarHidden iPhone X issue

When setting prefersStatusBarHidden to true on a view controller on the iPhone X, it seems the RMessage notification's height doesn't extend below the notch like it does for VCs with or without navigation bars.

Rotation

Hi. It seems I found an issue with rotation. Here is a video. I just created a new project and add a navigation controller.

Margins when a navigation bar is hidden are smaller than before

I tried 2.2.0 and found that margins in a message view when a navigation bar is hidden and a sub title is empty are different from 2.1.5. I like the layout in 2.1.5 because it has enough margins. Is this supposed to be this layout in 2.2.0?

2.2.0 2.1.5
simulator screen shot - iphone se - 2018-02-23 at 10 41 40 simulator screen shot - iphone se - 2018-02-23 at 10 40 48
[RMessage showNotificationWithTitle:NSLocalizedString(@"Tell the user something", nil)
                           subtitle:nil
                               type:RMessageTypeNormal
                     customTypeName:nil
                           callback:nil];

Display issues in UITableViewController on iOS 10

Notifications are display below the Navigation Bar with empty space on top (that space should be behind the navigation bar I guess)

I use the Objective C version. So far this issue only appeared on iOS 10 in an UITableViewController. In UIViewController it works fine.

notification showing several times

Hello,
Is it normal when a use the following code:

[RMessage showNotificationWithTitle:@"title"
                               subtitle:textToDisplay
                                   type:RMessageTypeError
                         customTypeName:nil
                               callback:nil];

it show multiple times. I call it in a notification observer and the code is called 2, 3 or 4 times instead of one...
Why ?

Thank you

Is button title doing anything?

I put in a button title, but no button showed up.
By looking through RMessageView the button title does not seem to be used. Am I correct?

Allow customize height of MessageView

I'm using RMessage with just title, no subtitle, no icon, etc. But the default MessageView size too big for just one line of text. Can you provide any way to alter constraint constant or something similarly to change the height of MessageView?

Thank you very much.

Minimum deployment target

Hi!

Is there any problems on iOS8? I checked on simulator - looks like everything is working.
So what was the reason for setting iOS9+ and is it possible to support iOS8, to use it with cocoapods?

crash in background dismissMessageView:completion:

We have a crash in production, we are having a hard time reproducing it in test.

The scenario is we put up an RMessage with endless duration on our rootViewController. Sometime after going to background (possibly when coming back into the app), it crashes.

To fix it we have set a high value for the duration rather than "EndlessDuration" in our RMessage because "didMoveToWindow" calls extra code only when it is set to Endless.

Stack trace:
1 MYAPPNAME 0x0000000100091f2c -[RMessage dismissMessageView:completion:] + 32
2 MYAPPNAME 0x0000000100093930 -[RMessageView didMoveToWindow] + 308
3 UIKit 0x00000001887b705c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1492
4 UIKit 0x00000001887b6d7c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 756
5 UIKit 0x00000001887b6310 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 148
6 Foundation 0x00000001843e9500 -[NSISEngine withBehaviors:performModifications:] + 164
7 UIKit 0x00000001887b6194 -[UIView(Hierarchy) _postMovedFromSuperview:] + 528
8 UIKit 0x0000000188aca8c0 __UIViewWasRemovedFromSuperview + 224
9 UIKit 0x00000001887b4bb8 -[UIView(Hierarchy) removeFromSuperview] + 420
10 UIKit 0x0000000188b18dc0 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke596 + 684
11 UIKit 0x0000000188b137e4 -[UIPresentationController transitionDidFinish:] + 120
12 UIKit 0x0000000188c3c530 -[_UICurrentContextPresentationController transitionDidFinish:] + 40
13 UIKit 0x0000000188b16e88 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2 + 184
14 UIKit 0x00000001888eb284 -[_UIViewControllerTransitionContext completeTransition:] + 112
15 UIKit 0x00000001888eb070 -[UITransitionView notifyDidCompleteTransition:] + 248
16 UIKit 0x00000001888eab6c -[UITransitionView _didCompleteTransition:] + 1160
17 UIKit 0x00000001888ea6cc -[UITransitionView _transitionDidStop:finished:] + 120
18 UIKit 0x00000001887f6e90 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 308
19 UIKit 0x00000001887f6d18 -[UIViewAnimationState animationDidStop:finished:] + 104
20 QuartzCore 0x00000001861cdc00 CA::Layer::run_animation_callbacks() + 280
21 libdispatch.dylib 0x000000018351d5f0 _dispatch_client_callout + 12
22 libdispatch.dylib 0x0000000183522cf8 _dispatch_main_queue_callback_4CF + 1840
23 CoreFoundation 0x0000000183a80bb0 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 8
24 CoreFoundation 0x0000000183a7ea18 __CFRunLoopRun + 1624
25 CoreFoundation 0x00000001839ad680 CFRunLoopRunSpecific + 380
26 GraphicsServices 0x0000000184ebc088 GSEventRunModal + 176
27 UIKit 0x0000000188824d90 UIApplicationMain + 200
28 MYAPPNAME 0x000000010003e2d4 main + 84
29 libdyld.dylib 0x000000018354e8b8 start + 0

How can I display message over application Window

I'm trying to display a message over the application window but can't except I use "shownotification onViewcontroller" but in my app delegate I can't know the view controller that the app is currently on. I want to use this to display message when user receives notification when app is in foreground

Crash

Hi,

I again have crash of RMessage:
pod 'RMessage', :git => 'https://github.com/donileo/RMessage.git', :commit => '9e87b0d'

It's on the line 1127 of the RMessageView.m (self.topToVCLayoutConstraint.active = YES;)

Here I am sending you video where I am uploading files, then showing success message.
First file went well, but second got stuck. (Sometimes first got stuck)

I think it's something due UITableView reload and showing RMessage in "same time".

video: https://streamable.com/mecc8

blur effect not working in ios 11?

Hello. After long time i write new project that need to include some notification view, then I used your library, thanks for great code.

After run app in ios 11. I see the blur effect not working as expect. Plz see my attack picture to see my problem.
This image is captured from simulator. Then below is my setting
"warning": {
"backgroundColor": "#FFCC00",
"backgroundColorAlpha": 0.3,
"titleTextColor": "#484638",
"titleFontSize": 14,
"subTitleFontSize": 12,
"subTitleTextColor": "#484638",
"iconImage": "NotificationBackgroundWarningIcon.png",
"blurBackground": 1
},
simulator screen shot - iphone 5s - 2018-03-30 at 22 30 38

callback after dismiss?

Is it possible to know when the popup is dismissed after the duration? ( Without user tapping)

Infinite loop when using automatic presentationViewController detection

There's the risk of an infinite loop when using the automatic presentationViewController detection from a modal, like this: NavigationController -> Modal (via visibleViewController) -> NavigationController (via presentingViewController) -> etc

Creating this issue because I think useful for others to know about when evaluating the library, but potential fix is available in #56

Add UI Testing to RMessage

I've been looking to integrate some testing to RMessage, but given that its mostly a visual library the testing will have to be with XCUITest which I'm a bit iffy about since the UI Testing will be limited to only what the Example project can incorporate. Regardless some testing is better than none, but more extensive testing will definitely require the Example Project to be designed to allow for XCUITest to do as many possible tests.

A bunch of crashes on live

Maybe this is related to #34 but after deploying the app on live we are getting three crashes in Crashlytics. Testing on various devices locally didn't turn anything up.

I'll add the three stacks which seem to center around _findCommonAncestorOfItem:andItem and _setActive:mutuallyExclusiveConstraints.

#0. Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1848f843c objc_msgSend + 28
1  Foundation                     0x1861b5dbc +[NSLayoutConstraint _findCommonAncestorOfItem:andItem:] + 140
2  Foundation                     0x1861b5868 -[NSLayoutConstraint _setActive:mutuallyExclusiveConstraints:] + 164
3  RMessage                       0x103a95584 __38-[RMessageView dismissWithCompletion:]_block_invoke_2 + 220
4  UIKit                          0x18ec8a980 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 620
5  UIKit                          0x18edba070 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 100
6  RMessage                       0x103a95478 __38-[RMessageView dismissWithCompletion:]_block_invoke + 216
7  libdispatch.dylib              0x18501aa54 _dispatch_call_block_and_release + 24
8  libdispatch.dylib              0x18501aa14 _dispatch_client_callout + 16
9  libdispatch.dylib              0x185027698 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1016
10 CoreFoundation                 0x185643344 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
11 CoreFoundation                 0x185640f20 __CFRunLoopRun + 2012
12 CoreFoundation                 0x185560c58 CFRunLoopRunSpecific + 436
13 GraphicsServices               0x18740cf84 GSEventRunModal + 100
14 UIKit                          0x18ecb95c4 UIApplicationMain + 236
15 Volders                        0x102a7fd14 main (main.m:15)
16 libdyld.dylib                  0x18508056c start + 4
#0. Crashed: com.twitter.crashlytics.ios.exception
0  Volders                        0x100903290 CLSProcessRecordAllThreads + 4307612304
1  Volders                        0x100903290 CLSProcessRecordAllThreads + 4307612304
2  Volders                        0x10090314c CLSProcessRecordAllThreads + 4307611980
3  Volders                        0x1008f2e8c CLSHandler + 4307545740
4  Volders                        0x100901298 __CLSExceptionRecord_block_invoke + 4307604120
5  libdispatch.dylib              0x182038a2c _dispatch_client_callout + 16
6  libdispatch.dylib              0x182075e54 _dispatch_queue_barrier_sync_invoke_and_complete + 56
7  Volders                        0x100900d2c CLSExceptionRecord + 4307602732
8  Volders                        0x100900b54 CLSExceptionRecordNSException + 4307602260
9  Volders                        0x100900768 CLSTerminateHandler() + 4307601256
10 libc++abi.dylib                0x1818f137c std::__terminate(void (*)()) + 16
11 libc++abi.dylib                0x1818f0ccc __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 130
12 libobjc.A.dylib                0x181900720 _objc_exception_destructor(void*) + 362
13 CoreFoundation                 0x182745548 __methodDescriptionForSelector + 138
14 CoreFoundation                 0x18273da74 ___forwarding___ + 1380
15 CoreFoundation                 0x182623b0c _CF_forwarding_prep_0 + 92
16 Foundation                     0x183293044 +[NSLayoutConstraint _findCommonAncestorOfItem:andItem:] + 140
17 Foundation                     0x183292af8 -[NSLayoutConstraint _setActive:mutuallyExclusiveConstraints:] + 164
18 RMessage                       0x101809584 __38-[RMessageView dismissWithCompletion:]_block_invoke_2 + 220
19 UIKit                          0x18ca199f4 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 608
20 UIKit                          0x18cb46b88 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 100
21 RMessage                       0x101809478 __38-[RMessageView dismissWithCompletion:]_block_invoke + 216
22 libdispatch.dylib              0x182038a6c _dispatch_call_block_and_release + 24
23 libdispatch.dylib              0x182038a2c _dispatch_client_callout + 16
24 libdispatch.dylib              0x182079d00 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 964
25 CoreFoundation                 0x1826e0660 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
26 CoreFoundation                 0x1826de1b8 __CFRunLoopRun + 2272
27 CoreFoundation                 0x1825fe498 CFRunLoopRunSpecific + 552
28 GraphicsServices               0x1845bf020 GSEventRunModal + 100
29 UIKit                          0x18ca4821c UIApplicationMain + 236
30 Volders                        0x1007e7d14 main (main.m:15)
31 libdyld.dylib                  0x18209dfc0 start + 4
#0. Crashed: com.twitter.crashlytics.ios.exception
0  Volders                        0x10441b290 CLSProcessRecordAllThreads + 4377440912
1  Volders                        0x10441b290 CLSProcessRecordAllThreads + 4377440912
2  Volders                        0x10441b14c CLSProcessRecordAllThreads + 4377440588
3  Volders                        0x10440ae8c CLSHandler + 4377374348
4  Volders                        0x104419298 __CLSExceptionRecord_block_invoke + 4377432728
5  libdispatch.dylib              0x1849faa14 _dispatch_client_callout + 16
6  libdispatch.dylib              0x184a37d4c _dispatch_queue_barrier_sync_invoke_and_complete + 56
7  Volders                        0x104418d2c CLSExceptionRecord + 4377431340
8  Volders                        0x104418b54 CLSExceptionRecordNSException + 4377430868
9  Volders                        0x104418768 CLSTerminateHandler() + 4377429864
10 libc++abi.dylib                0x1842b454c std::__terminate(void (*)()) + 16
11 libc++abi.dylib                0x1842b3ea8 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 134
12 libobjc.A.dylib                0x1842c465c _objc_exception_destructor(void*) + 362
13 CoreFoundation                 0x18507b0ac -[NSException initWithCoder:] + 114
14 Foundation                     0x185b958f4 -[NSLayoutConstraint _setActive:mutuallyExclusiveConstraints:] + 304
15 RMessage                       0x105315584 __38-[RMessageView dismissWithCompletion:]_block_invoke_2 + 220
16 UIKit                          0x18e66a980 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 620
17 UIKit                          0x18e79a070 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 100
18 RMessage                       0x105315478 __38-[RMessageView dismissWithCompletion:]_block_invoke + 216
19 libdispatch.dylib              0x1849faa54 _dispatch_call_block_and_release + 24
20 libdispatch.dylib              0x1849faa14 _dispatch_client_callout + 16
21 libdispatch.dylib              0x184a3bc80 _dispatch_main_queue_callback_4CF$VARIANT$armv81 + 968
22 CoreFoundation                 0x185023344 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
23 CoreFoundation                 0x185020f20 __CFRunLoopRun + 2012
24 CoreFoundation                 0x184f40c58 CFRunLoopRunSpecific + 436
25 GraphicsServices               0x186decf84 GSEventRunModal + 100
26 UIKit                          0x18e6995c4 UIApplicationMain + 236
27 Volders                        0x1042ffd14 main (main.m:15)
28 libdyld.dylib                  0x184a6056c start + 4

center text and icon

Hello i need center text and icon, and i can modify height of notification view. plz help me how can i do that
screen shot 2017-10-03 at 15 24 33

Crash

I updated my pods and I get this error:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'

as this line 986:
[messageNavigationController.view insertSubview:self belowSubview:messageNavigationController.navigationBar];

I have this in my pod file:
pod 'RMessage', :git => 'https://github.com/donileo/RMessage.git', :branch => 'develop'

I use iPhone 6s, iOS 11.2

Implement Blur Code

Allow RMessage to blur the background of what its presented over as originally intended in TSMessages. The blur tint color and opacity of the tint color should be customizable as well as the ability to toggle the blur per a json key in the design file. --Initial code is looking good.

iOS 11 - (maybe iphoneX) no response

The customised push can be shown on top while in iPhone 6 plus, 5s, etc. but it is no showing the customised push while in iPhoneX.
While the customised push can be shown while the phone is connecting to Mac with Xcode is compiling.
The app is detecting push on appdelegate.m inside method didReceiveRemoteNotification:fetchCompletionHandler: for all cases.

Using Xcode 7.3.1.
RMessage Release 2.1.5
It is strange, can you try to figure it out and resolve it asap.
:)
Thanks.

Above Controller

I find it confusing for people to use it.
The Issue is, that a Notification is displayed onto of the current Content.
This should be a Subview in Navigationbar and pushes the content further down.

If you have a scroll list with Large Title and start to scroll the Large title becomes small and the notification is stuck in the upper part of the screen.

Wasn't able to solve it myself :(

Crash on presentMessageView

We have a crash on presentMessageView that we can't quite wrap our head around.

Here are two screenshots from the stacktrace.

screen shot 2017-04-06 at 12 52 42

screen shot 2017-04-06 at 12 52 27

Have you experienced this crash before?

Button on Notifications Not Present

I have just moved over to TSMessage to RMessage and the buttons on the notifications are not visible. I took a look on the example project and yet they aren't present on those either.

Heres my code:

[RMessage showNotificationInViewController:self
                                             title:@"Welcome to Version 4.4"
                                          subtitle:@"Would you like to take a read of the release notes?"
                                         iconImage:[UIImage imageNamed:@"iconNotes"]
                                              type:RMessageTypeCustom
                                    customTypeName:@"sdTheme"
                                          duration:RMessageDurationEndless
                                          callback:^{
                                              NSLog(@"Tapped Notification");
                                          }
                                       buttonTitle:@"Read"
                                    buttonCallback:^{
                                        [self showReleaseNotes];
                                    }
                                        atPosition:RMessagePositionTop
                              canBeDismissedByUser:YES];

That produces this but no button is visible:
img_e3241

Could not load NIB in bundle: NSBundle

Hi,

I seems I've crashing in debug. I've updated to 2.3.2 but issue persists.
Also, if building a test flight the issue goes away. So this only concerns debug builds (consistently).

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/user/Library/Developer/CoreSimulator/Devices/31E95C45-5A85-4F22-B5C5-757E2A6A837F/data/Containers/Bundle/Application/260E17FE-DBFE-418D-9BE9-8B28D8A2C167/MyApp.app> (loaded)' with name 'RMessageView''

Crash

I'm using RMessage (2.3.2).
I have a crash on line 508 in RMessageView.m with message:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSLayoutConstraint for <UIView: 0x133d56730; frame = (47 10; 343.333 50.6667); autoresize = RM+BM; layer = <CALayer: 0x283758de0>>: Constraint items must each be a view or layout guide.'

Call Rmessage like that:

[RMessage showNotificationInViewController:vc title:title subtitle:subTitle iconImage:nil type:RMessageTypeError customTypeName:nil duration:duration callback:callback buttonTitle:nil buttonCallback:nil atPosition:RMessagePositionTop canBeDismissedByUser:YES];

iOS 12

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.